evas: use new API eina_file_close_on_exec.

This commit is contained in:
Cedric BAIL 2017-04-18 16:57:23 -07:00
parent c1ea5ed769
commit 10ccb08421
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ _socketfd_handler(int fd EINA_UNUSED, Fd_Flags flags EINA_UNUSED, void *data EIN
/* TODO: when porting to windows, do:
* SetHandleInformation(s, HANDLE_FLAG_INHERIT, 0)
*/
if (fcntl(s, F_SETFD, FD_CLOEXEC) < 0) ERR("Cannot set CLOEXEC on fd");
if (!eina_file_close_on_exec(s, EINA_TRUE)) ERR("Cannot set CLOEXEC on fd");
cserve2_client_accept(s);
}