aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-25 00:32:51 +0000
committerRichard M. Stallman1996-06-25 00:32:51 +0000
commit0e81d8cdcca0ddac0e2b4776901c07e989405396 (patch)
treeeb811133b3a17e40c9ae939cea54ad401065634a /src
parentff85d4f3be32e2367e129064c52dac2b59f32f1c (diff)
downloademacs-0e81d8cdcca0ddac0e2b4776901c07e989405396.tar.gz
emacs-0e81d8cdcca0ddac0e2b4776901c07e989405396.zip
(x_connection_closed): If waiting_for_input, call quit_throw_to_read_char.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index d217f169fee..991b66995cf 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -148,6 +148,8 @@ Lisp_Object x_display_name_list;
148 is the frame to apply to. */ 148 is the frame to apply to. */
149extern struct frame *updating_frame; 149extern struct frame *updating_frame;
150 150
151extern waiting_for_input;
152
151/* This is a frame waiting to be autoraised, within XTread_socket. */ 153/* This is a frame waiting to be autoraised, within XTread_socket. */
152struct frame *pending_autoraise_frame; 154struct frame *pending_autoraise_frame;
153 155
@@ -4533,6 +4535,12 @@ x_connection_closed (display, error_message)
4533 sigunblock (sigmask (SIGALRM)); 4535 sigunblock (sigmask (SIGALRM));
4534 TOTALLY_UNBLOCK_INPUT; 4536 TOTALLY_UNBLOCK_INPUT;
4535 4537
4538 if (waiting_for_input)
4539 {
4540 message ("%s", error_message);
4541 quit_throw_to_read_char ();
4542 }
4543
4536 error ("%s", error_message); 4544 error ("%s", error_message);
4537} 4545}
4538 4546