aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2008-09-24 19:58:06 +0000
committerDan Nicolaescu2008-09-24 19:58:06 +0000
commit73fee52267dfcaf79217c0476eab4c421f5b7702 (patch)
tree1981656fbd291c7dadaea612293f8e0a2f597682 /src
parent92d2ea2ce739d0d9ee5b09a39bb5efe46b8d471b (diff)
downloademacs-73fee52267dfcaf79217c0476eab4c421f5b7702.tar.gz
emacs-73fee52267dfcaf79217c0476eab4c421f5b7702.zip
* lisp.h (is_daemon): Declare.
* dispnew.c (init_display): Do not try to initialize the terminal when running as a daemon.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/dispnew.c4
-rw-r--r--src/lisp.h2
3 files changed, 12 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f2b82b231bf..b0689ee9c89 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * lisp.h (is_daemon): Declare.
4 * dispnew.c (init_display): Do not try to initialize the terminal
5 when running as a daemon.
6
12008-09-22 Chong Yidong <cyd@stupidchicken.com> 72008-09-22 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and 9 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
diff --git a/src/dispnew.c b/src/dispnew.c
index 48a8bd283c3..0f8f174eb7c 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6892,6 +6892,10 @@ init_display ()
6892 } 6892 }
6893#endif 6893#endif
6894 6894
6895 /* If running as a daemon, no need to initialize any frames/terminal. */
6896 if (is_daemon)
6897 return;
6898
6895 /* If no window system has been specified, try to use the terminal. */ 6899 /* If no window system has been specified, try to use the terminal. */
6896 if (! isatty (0)) 6900 if (! isatty (0))
6897 { 6901 {
diff --git a/src/lisp.h b/src/lisp.h
index d013a04553e..268d5b64eea 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -3118,6 +3118,8 @@ void synchronize_system_time_locale P_ ((void));
3118void shut_down_emacs P_ ((int, int, Lisp_Object)); 3118void shut_down_emacs P_ ((int, int, Lisp_Object));
3119/* Nonzero means don't do interactive redisplay and don't change tty modes */ 3119/* Nonzero means don't do interactive redisplay and don't change tty modes */
3120extern int noninteractive; 3120extern int noninteractive;
3121/* Nonzero means Emacs was started as a daemon. */
3122extern int is_daemon;
3121/* Nonzero means don't do use window-system-specific display code */ 3123/* Nonzero means don't do use window-system-specific display code */
3122extern int inhibit_window_system; 3124extern int inhibit_window_system;
3123/* Nonzero means that a filter or a sentinel is running. */ 3125/* Nonzero means that a filter or a sentinel is running. */