forked from enlightenment/efl
evas: use new API eina_file_close_on_exec.
This commit is contained in:
parent
c1ea5ed769
commit
10ccb08421
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue