From 931c1dfaae8e1fc4c77e563912ee4fb5953ae844 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Mon, 25 Oct 2010 12:08:27 -0400 Subject: Document GTK Emacs kill on display close in PROBLEMS. * src/xterm.c (x_connection_closed): Expand comment. --- src/xterm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/xterm.c b/src/xterm.c index 1de49e2fde..143500256a 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -7911,7 +7911,13 @@ x_connection_closed (dpy, error_message) #endif #ifdef USE_GTK - /* Due to bugs in some Gtk+ versions, just exit here. */ + /* There is a long-standing bug in GTK that prevents the GTK + main loop from recovering gracefully from disconnects + (https://bugzilla.gnome.org/show_bug.cgi?id=85715). Among + other problems, this gives rise to a stream of Glib error + messages that, in one incident, filled up a user's hard disk + (http://lists.gnu.org/archive/html/emacs-devel/2010-10/msg00927.html). + So, kill Emacs unconditionally if the display is closed. */ { fprintf (stderr, "%s\n", error_msg); Fkill_emacs (make_number (70)); -- cgit v1.2.3