elementary: use new API eina_file_close_on_exec.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 18 Apr 2017 23:57:11 +0000 (16:57 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 18 Apr 2017 23:57:11 +0000 (16:57 -0700)
src/bin/elementary/quicklaunch.c

index 83d7d2d..765806e 100644 (file)
@@ -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));