diff src/lisp.h @ 99182:c1511154e8c2

* emacs.c (daemon_pipe): Make non-static. (IS_DAEMON): Move definition ... * lisp.h (IS_DAEMON): ... here. (daemon_pipe): Declare. (is_daemon): Remove. * dispnew.c (init_display): Use IS_DAEMON.
author Dan Nicolaescu <dann@ics.uci.edu>
date Tue, 28 Oct 2008 04:25:11 +0000
parents 9f6c68b64666
children 91206eb7321f
line wrap: on
line diff
--- a/src/lisp.h	Tue Oct 28 02:57:25 2008 +0000
+++ b/src/lisp.h	Tue Oct 28 04:25:11 2008 +0000
@@ -3118,8 +3118,12 @@
 void shut_down_emacs P_ ((int, int, Lisp_Object));
 /* Nonzero means don't do interactive redisplay and don't change tty modes */
 extern int noninteractive;
-/* Nonzero means Emacs was started as a daemon.  */
-extern int is_daemon;
+
+/* Pipe used to send exit notification to the daemon parent at
+   startup.  */
+extern int daemon_pipe[2];
+#define IS_DAEMON (daemon_pipe[1] != 0)
+
 /* Nonzero means don't do use window-system-specific display code */
 extern int inhibit_window_system;
 /* Nonzero means that a filter or a sentinel is running.  */