aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2014-02-17 13:20:44 -0800
committerPaul Eggert2014-02-17 13:20:44 -0800
commit3cb98721e23030812206733f733d40a2ea523bc6 (patch)
treec1813fe448ced23aa08de8a32f895632137b425c /src
parentf260162808078c02a3e5f08aed245154e9131aed (diff)
downloademacs-3cb98721e23030812206733f733d40a2ea523bc6.tar.gz
emacs-3cb98721e23030812206733f733d40a2ea523bc6.zip
temacs --daemon fix
* emacs.c (main): Initialize daemon_pipe[1] here ... (syms_of_emacs): ... instead of here. Fixes: debbugs:16599
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/emacs.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 889efe86f74..8592eef6251 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12014-02-17 Paul Eggert <eggert@cs.ucla.edu>
2
3 temacs --daemon fix (Bug#16599).
4 * emacs.c (main): Initialize daemon_pipe[1] here ...
5 (syms_of_emacs): ... instead of here.
6
12014-02-16 Anders Lindgern <andlind@gmail.com> 72014-02-16 Anders Lindgern <andlind@gmail.com>
2 8
3 * nsterm.m (keyDown:): Check for normal key even if NSNumericPadKeyMask 9 * 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)
1005 exit (0); 1005 exit (0);
1006 } 1006 }
1007 1007
1008 /* Make sure IS_DAEMON starts up as false. */
1009 daemon_pipe[1] = 0;
1010
1008 if (argmatch (argv, argc, "-daemon", "--daemon", 5, NULL, &skip_args) 1011 if (argmatch (argv, argc, "-daemon", "--daemon", 5, NULL, &skip_args)
1009 || argmatch (argv, argc, "-daemon", "--daemon", 5, &dname_arg, &skip_args)) 1012 || argmatch (argv, argc, "-daemon", "--daemon", 5, &dname_arg, &skip_args))
1010 { 1013 {
@@ -2548,7 +2551,4 @@ libraries; only those already known by Emacs will be loaded. */);
2548 Vlibrary_cache = Qnil; 2551 Vlibrary_cache = Qnil;
2549 staticpro (&Vlibrary_cache); 2552 staticpro (&Vlibrary_cache);
2550#endif 2553#endif
2551
2552 /* Make sure IS_DAEMON starts up as false. */
2553 daemon_pipe[1] = 0;
2554} 2554}