eet: use new API eina_file_close_on_exec.

This commit is contained in:
Cedric BAIL 2017-04-18 16:54:44 -07:00
parent b2893dfc77
commit fed9ca47f2
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ eet_flush2(Eet_File *ef)
return EET_ERROR_NOT_WRITABLE;
}
if (fcntl(fd, F_SETFD, FD_CLOEXEC)) ERR("can't set CLOEXEC on write fd");
if (!eina_file_close_on_exec(fd, EINA_TRUE)) ERR("can't set CLOEXEC on write fd");
}
else
{