changeset 5953:60f711724bc9

(XTread_socket): Do not assume that select returning immediately with no events implies a hangup.
author Richard M. Stallman <rms@gnu.org>
date Tue, 15 Feb 1994 16:17:25 +0000
parents 908e36c0235d
children 02f406110e4b
files src/xterm.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Tue Feb 15 13:59:18 1994 +0000
+++ b/src/xterm.c	Tue Feb 15 16:17:25 1994 +0000
@@ -3628,10 +3628,15 @@
 #ifdef X_IO_BUG
   if (! event_found)
     /* On some systems, an X bug causes Emacs to get no more events
-       when the window is destroyed.  Detect that.  */
+       when the window is destroyed.  Detect that.  (1994.)  */
     XNoOp (x_current_display);
 #endif /* X_IO_BUG */
 
+#if 0 /* This fails for serial-line connections to the X server, 
+	 because the characters arrive one by one, and a partial
+	 command makes select return but gives nothing to read.
+	 We'll have to hope that the bug that this tried to fix
+	 in 1988 has been fixed in Xlib or the X server.  */
 #ifdef HAVE_SELECT
   if (expected && ! event_found)
     {
@@ -3652,6 +3657,7 @@
 	kill (getpid (), SIGHUP);
     }
 #endif /* HAVE_SELECT */
+#endif /* 0 */
 
 #ifndef HAVE_X11
   if (updating_frame == 0)