aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2014-09-04 07:38:37 +0200
committerJan Djärv2014-09-04 07:38:37 +0200
commitbaff67fcd5d64af9d218204111d2566ae408c967 (patch)
treef316d2f3da0ef7d774bb2952dcabdd09ad3cfebe /src
parentd1db070572aabbc55a419c8ce0b048901c6bafd3 (diff)
downloademacs-baff67fcd5d64af9d218204111d2566ae408c967.tar.gz
emacs-baff67fcd5d64af9d218204111d2566ae408c967.zip
* xsmfns.c: Initialize ice_fd.
* xterm.c (x_term_init): Don't call x_session_initialize if running as a daemon. Fixes: debbugs:18375
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/xsmfns.c2
-rw-r--r--src/xterm.c4
3 files changed, 10 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f463cc71fd8..9b0f435881f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12014-09-04 Jan D <jhd@f20.localdomain>
2
3 * xterm.c (x_term_init): Don't call x_session_initialize if running
4 as a daemon (Bug#18375).
5
6 * xsmfns.c: Initialize ice_fd.
7
12014-09-04 Paul Eggert <eggert@cs.ucla.edu> 82014-09-04 Paul Eggert <eggert@cs.ucla.edu>
2 9
3 Less chatter in 'make' output. 10 Less chatter in 'make' output.
diff --git a/src/xsmfns.c b/src/xsmfns.c
index 81b012690f9..8721cc81b03 100644
--- a/src/xsmfns.c
+++ b/src/xsmfns.c
@@ -49,7 +49,7 @@ static struct input_event emacs_event;
49 49
50/* The descriptor that we use to check for data from the session manager. */ 50/* The descriptor that we use to check for data from the session manager. */
51 51
52static int ice_fd; 52static int ice_fd = -1;
53 53
54/* A flag that says if we are in shutdown interactions or not. */ 54/* A flag that says if we are in shutdown interactions or not. */
55 55
diff --git a/src/xterm.c b/src/xterm.c
index beb7d78841d..767de9786cb 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -11183,8 +11183,8 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
11183#ifdef HAVE_X_SM 11183#ifdef HAVE_X_SM
11184 /* Only do this for the very first display in the Emacs session. 11184 /* Only do this for the very first display in the Emacs session.
11185 Ignore X session management when Emacs was first started on a 11185 Ignore X session management when Emacs was first started on a
11186 tty. */ 11186 tty or started as a daemon. */
11187 if (terminal->id == 1) 11187 if (terminal->id == 1 && ! IS_DAEMON)
11188 x_session_initialize (dpyinfo); 11188 x_session_initialize (dpyinfo);
11189#endif 11189#endif
11190 11190