cedric pushed a commit to branch master.

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

commit c1ea5ed76967b1032d242adc8a4d70c19fc8166a
Author: Cedric BAIL <[email protected]>
Date:   Tue Apr 18 16:57:11 2017 -0700

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

diff --git a/src/bin/elementary/quicklaunch.c b/src/bin/elementary/quicklaunch.c
index 83d7d2d..765806e 100644
--- a/src/bin/elementary/quicklaunch.c
+++ b/src/bin/elementary/quicklaunch.c
@@ -210,7 +210,7 @@ main(int argc, char **argv)
                  buf, strerror(errno));
         exit(-1);
      }
-   if (fcntl(sock, F_SETFD, FD_CLOEXEC) < 0)
+   if (!eina_file_close_on_exec(sock, EINA_TRUE))
      {
         CRI("cannot set close on exec socket for '%s' (fd=%d): %s",
                  buf, sock, strerror(errno));

-- 


Reply via email to