diff src/xsmfns.c @ 83350:e7d5238afe52

Work around crashes in X session management after normal shutdown of X server. * src/xsmfns.c (x_session_close): New function. * src/xterm.h: Declare it. * src/xterm.c (XTread_socket): Don't call x_session_check_input for secondary displays. (x_term_init): Do not initialize X session management when the initial display was a tty frame. (x_delete_display): Close X session management when we close its display. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-390
author Karoly Lorentey <lorentey@elte.hu>
date Thu, 04 Aug 2005 00:46:55 +0000
parents 6c13700d1c13
children 532e0a9335a9
line wrap: on
line diff
--- a/src/xsmfns.c	Fri Jul 22 03:24:10 2005 +0000
+++ b/src/xsmfns.c	Thu Aug 04 00:46:55 2005 +0000
@@ -516,6 +516,14 @@
     }
 }
 
+/* Ensure that the session manager is not contacted again. */
+
+void
+x_session_close ()
+{
+  ice_fd = -1;
+}
+
 
 DEFUN ("handle-save-session", Fhandle_save_session,
        Shandle_save_session, 1, 1, "e",