1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

Fix pipe bug with OS X emacs --daemon (Bug#16262).

* emacs.c (main) [DAEMON_MUST_EXEC]: Clear the close-on-exec
flags on the daemon pipe ends before execing.
This commit is contained in:
Paul Eggert 2013-12-28 14:56:58 -08:00
parent e9d6c46ab5
commit 411bf4a486
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2013-12-28 Paul Eggert <eggert@cs.ucla.edu>
Fix pipe bug with OS X emacs --daemon (Bug#16262).
* emacs.c (main) [DAEMON_MUST_EXEC]: Clear the close-on-exec
flags on the daemon pipe ends before execing.
2013-12-28 Eli Zaretskii <eliz@gnu.org>
* w32fns.c (Fx_create_frame): Error out if called from a TTY

View File

@ -1099,6 +1099,8 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
argv[skip_args] = fdStr;
fcntl (daemon_pipe[0], F_SETFD, 0);
fcntl (daemon_pipe[1], F_SETFD, 0);
execvp (argv[0], argv);
emacs_perror (argv[0]);
exit (errno == ENOENT ? EXIT_ENOENT : EXIT_CANNOT_INVOKE);