]> git.eshelyaron.com Git - emacs.git/commitdiff
temacs --daemon fix
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Feb 2014 21:20:44 +0000 (13:20 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Feb 2014 21:20:44 +0000 (13:20 -0800)
* emacs.c (main): Initialize daemon_pipe[1] here ...
(syms_of_emacs): ... instead of here.

Fixes: debbugs:16599
src/ChangeLog
src/emacs.c

index 889efe86f74aad497757d8d7e566bfe4e3c5fd2c..8592eef6251f130df478fb9008809469822d7d1c 100644 (file)
@@ -1,3 +1,9 @@
+2014-02-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       temacs --daemon fix (Bug#16599).
+       * emacs.c (main): Initialize daemon_pipe[1] here ...
+       (syms_of_emacs): ... instead of here.
+
 2014-02-16  Anders Lindgern <andlind@gmail.com>
 
        * nsterm.m (keyDown:): Check for normal key even if NSNumericPadKeyMask
index 18f6a089dbb6049ac9c196e9aa81c8481d4ff1c4..fd93324de97740825fd75a7ec4c6909bee4dc687 100644 (file)
@@ -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;
 }