aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2008-09-28 01:58:26 +0000
committerDan Nicolaescu2008-09-28 01:58:26 +0000
commitd6ef42b908606474e8e636b21722d1cdc7f4ad07 (patch)
tree8798def9132a2c68ca729f42060ce0ac0a60de0a /src
parentd275f05d1bef592249a887455f0ac3d6de4e6d86 (diff)
downloademacs-d6ef42b908606474e8e636b21722d1cdc7f4ad07.tar.gz
emacs-d6ef42b908606474e8e636b21722d1cdc7f4ad07.zip
(init_display): Return earlier when running as a
daemon.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/dispnew.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index aa372dd23df..b95ac6cf34f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * dispnew.c (init_display): Return earlier when running as a
4 daemon.
5
12008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com> 62008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2 7
3 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, 8 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from,
diff --git a/src/dispnew.c b/src/dispnew.c
index 0f8f174eb7c..307515f7bfb 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6824,6 +6824,10 @@ init_display ()
6824 signal (SIGWINCH, window_change_signal); 6824 signal (SIGWINCH, window_change_signal);
6825#endif /* SIGWINCH */ 6825#endif /* SIGWINCH */
6826 6826
6827 /* If running as a daemon, no need to initialize any frames/terminal. */
6828 if (is_daemon)
6829 return;
6830
6827 /* If the user wants to use a window system, we shouldn't bother 6831 /* If the user wants to use a window system, we shouldn't bother
6828 initializing the terminal. This is especially important when the 6832 initializing the terminal. This is especially important when the
6829 terminal is so dumb that emacs gives up before and doesn't bother 6833 terminal is so dumb that emacs gives up before and doesn't bother
@@ -6892,10 +6896,6 @@ init_display ()
6892 } 6896 }
6893#endif 6897#endif
6894 6898
6895 /* If running as a daemon, no need to initialize any frames/terminal. */
6896 if (is_daemon)
6897 return;
6898
6899 /* 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. */
6900 if (! isatty (0)) 6900 if (! isatty (0))
6901 { 6901 {