From c1ea5ed76967b1032d242adc8a4d70c19fc8166a Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Tue, 18 Apr 2017 16:57:11 -0700 Subject: [PATCH] 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)); -- 2.7.4