From 45bd2734b184382f7997dccb9363ed88a5a66542 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 28 Dec 2013 23:42:46 -0800 Subject: [PATCH] * src/emacs.c (main): [DAEMON_MUST_EXEC]: Restore close-on-exec after exec. Fixes: debbugs:16262 --- src/emacs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/emacs.c b/src/emacs.c index b5bd3129ad2..2e835c34a8b 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1117,6 +1117,7 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem sscanf (dname_arg, "\n%d,%d\n%s", &(daemon_pipe[0]), &(daemon_pipe[1]), dname_arg2); dname_arg = *dname_arg2 ? dname_arg2 : NULL; + fcntl (daemon_pipe[1], F_SETFD, FD_CLOEXEC); } #endif /* DAEMON_MUST_EXEC */ -- 2.39.2