diff src/dispnew.c @ 98379:7424f5df0da7

(init_display): Return earlier when running as a daemon.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 28 Sep 2008 01:58:26 +0000
parents d83896198aae
children c6a1d36b7387
line wrap: on
line diff
--- a/src/dispnew.c	Sun Sep 28 00:36:00 2008 +0000
+++ b/src/dispnew.c	Sun Sep 28 01:58:26 2008 +0000
@@ -6824,6 +6824,10 @@
     signal (SIGWINCH, window_change_signal);
 #endif /* SIGWINCH */
 
+  /* If running as a daemon, no need to initialize any frames/terminal. */
+  if (is_daemon)
+    return;
+
   /* If the user wants to use a window system, we shouldn't bother
      initializing the terminal.  This is especially important when the
      terminal is so dumb that emacs gives up before and doesn't bother
@@ -6892,10 +6896,6 @@
     }
 #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))
     {