aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2010-10-24 17:05:11 -0400
committerChong Yidong2010-10-24 17:05:11 -0400
commit23c261f58fceed14e04b3ba928007fde9567d8e2 (patch)
treec42b5c4161863a9e80de338be906906d4af2562d /src
parenta03c2342138c2f7e8c8f452e1945ec140cf35c10 (diff)
downloademacs-23c261f58fceed14e04b3ba928007fde9567d8e2.tar.gz
emacs-23c261f58fceed14e04b3ba928007fde9567d8e2.zip
* xterm.c (x_connection_closed): Kill Emacs unconditionally.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xterm.c15
2 files changed, 10 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d8e0727b81b..98d6e0b1ca1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12010-10-24 Chong Yidong <cyd@stupidchicken.com>
2
3 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4
12010-10-22 Eli Zaretskii <eliz@gnu.org> 52010-10-22 Eli Zaretskii <eliz@gnu.org>
2 6
3 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate. 7 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
diff --git a/src/xterm.c b/src/xterm.c
index 1fee90754fc..1de49e2fde1 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7911,15 +7911,12 @@ x_connection_closed (dpy, error_message)
7911#endif 7911#endif
7912 7912
7913#ifdef USE_GTK 7913#ifdef USE_GTK
7914 /* Due to bugs in some Gtk+ versions, just exit here if this 7914 /* Due to bugs in some Gtk+ versions, just exit here. */
7915 is the last display/terminal. */ 7915 {
7916 if (terminal_list->next_terminal == NULL) 7916 fprintf (stderr, "%s\n", error_msg);
7917 { 7917 Fkill_emacs (make_number (70));
7918 fprintf (stderr, "%s\n", error_msg); 7918 abort (); /* NOTREACHED */
7919 shut_down_emacs (0, 0, Qnil); 7919 }
7920 exit (70);
7921 }
7922 xg_display_close (dpyinfo->display);
7923#endif 7920#endif
7924 7921
7925 /* Indicate that this display is dead. */ 7922 /* Indicate that this display is dead. */