* src/emacs.c (main): [DAEMON_MUST_EXEC]: Restore close-on-exec after exec.

Fixes: debbugs:16262
This commit is contained in:
Paul Eggert 2013-12-28 23:42:46 -08:00
parent a7f7e547d6
commit 45bd2734b1

View file

@ -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 */