From: Paul Eggert Date: Mon, 17 Feb 2014 21:20:44 +0000 (-0800) Subject: temacs --daemon fix X-Git-Tag: emacs-24.3.90~173^2^2~42^2~30 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3cb98721e23030812206733f733d40a2ea523bc6;p=emacs.git temacs --daemon fix * emacs.c (main): Initialize daemon_pipe[1] here ... (syms_of_emacs): ... instead of here. Fixes: debbugs:16599 --- diff --git a/src/ChangeLog b/src/ChangeLog index 889efe86f74..8592eef6251 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2014-02-17 Paul Eggert + + temacs --daemon fix (Bug#16599). + * emacs.c (main): Initialize daemon_pipe[1] here ... + (syms_of_emacs): ... instead of here. + 2014-02-16 Anders Lindgern * nsterm.m (keyDown:): Check for normal key even if NSNumericPadKeyMask diff --git a/src/emacs.c b/src/emacs.c index 18f6a089dbb..fd93324de97 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1005,6 +1005,9 @@ main (int argc, char **argv) exit (0); } + /* Make sure IS_DAEMON starts up as false. */ + daemon_pipe[1] = 0; + if (argmatch (argv, argc, "-daemon", "--daemon", 5, NULL, &skip_args) || argmatch (argv, argc, "-daemon", "--daemon", 5, &dname_arg, &skip_args)) { @@ -2548,7 +2551,4 @@ libraries; only those already known by Emacs will be loaded. */); Vlibrary_cache = Qnil; staticpro (&Vlibrary_cache); #endif - - /* Make sure IS_DAEMON starts up as false. */ - daemon_pipe[1] = 0; }