* dispnew.c (init_display): Do not try to initialize the terminal
when running as a daemon.
+2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * lisp.h (is_daemon): Declare.
+ * dispnew.c (init_display): Do not try to initialize the terminal
+ when running as a daemon.
+
2008-09-22 Chong Yidong <cyd@stupidchicken.com>
* nsfns.m (compute_tip_xy): Use x_display_pixel_width and
}
#endif
+ /* If running as a daemon, no need to initialize any frames/terminal. */
+ if (is_daemon)
+ return;
+
/* If no window system has been specified, try to use the terminal. */
if (! isatty (0))
{
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;
/* 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. */