Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7071e5dd
Commit
7071e5dd
authored
Feb 15, 1994
by
Richard M. Stallman
Browse files
(XTread_socket): Do not assume that select returning
immediately with no events implies a hangup.
parent
19240c20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/xterm.c
src/xterm.c
+7
-1
No files found.
src/xterm.c
View file @
7071e5dd
...
...
@@ -3628,10 +3628,15 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
#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 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
kill (getpid (), SIGHUP);
}
#endif /* HAVE_SELECT */
#endif /* 0 */
#ifndef HAVE_X11
if
(
updating_frame
==
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment