cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=10ccb0842143751370be199d15e44790e5ffa02d

commit 10ccb0842143751370be199d15e44790e5ffa02d
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Tue Apr 18 16:57:23 2017 -0700

    evas: use new API eina_file_close_on_exec.
---
 src/bin/evas/evas_cserve2_main_loop_linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/evas/evas_cserve2_main_loop_linux.c 
b/src/bin/evas/evas_cserve2_main_loop_linux.c
index abbee95..66a65f1 100644
--- a/src/bin/evas/evas_cserve2_main_loop_linux.c
+++ b/src/bin/evas/evas_cserve2_main_loop_linux.c
@@ -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);
 }

-- 


Reply via email to