diff options
author | Dan Nicolaescu <[email protected]> | 2008-09-24 19:58:06 +0000 |
---|---|---|
committer | Dan Nicolaescu <[email protected]> | 2008-09-24 19:58:06 +0000 |
commit | 73fee52267dfcaf79217c0476eab4c421f5b7702 (patch) | |
tree | 1981656fbd291c7dadaea612293f8e0a2f597682 /src/dispnew.c | |
parent | 92d2ea2ce739d0d9ee5b09a39bb5efe46b8d471b (diff) |
* 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/dispnew.c')
-rw-r--r-- | src/dispnew.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 48a8bd283c..0f8f174eb7 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -6892,6 +6892,10 @@ init_display () } #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)) { |