bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16599: src/temacs --daemon fails


From: Eli Zaretskii
Subject: bug#16599: src/temacs --daemon fails
Date: Mon, 17 Feb 2014 17:51:46 +0200

> From: Alex Bennée <kernel-hacker@bennee.com>
> Cc: Alex Bennée <kernel-hacker@bennee.com>, Eli Zaretskii
>  <eliz@gnu.org>, 16599@debbugs.gnu.org, emacs-devel@gnu.org
> Date: Mon, 17 Feb 2014 07:40:35 +0000
> 
> Why did the syms_of_emacs() function feel the need to initialise daemon_pipe?

Because in a dumped Emacs, daemon_pipe might hold a stale value from
before the dumping.

Does the patch below solve this problem?

=== modified file 'src/emacs.c'
--- src/emacs.c 2014-01-20 19:44:56 +0000
+++ src/emacs.c 2014-02-17 15:48:44 +0000
@@ -2550,5 +2550,6 @@ libraries; only those already known by E
 #endif
 
   /* Make sure IS_DAEMON starts up as false.  */
-  daemon_pipe[1] = 0;
+  if (initialized)
+    daemon_pipe[1] = 0;
 }






reply via email to

[Prev in Thread] Current Thread [Next in Thread]