Commit 0b75e9a4 authored by Richard M. Stallman's avatar Richard M. Stallman

(wait_reading_process_input): Move the O_NONBLOCK and

O_NDELAY conditionals out of the EWOULDBLOCK conditional.
parent 588a9a3e
......@@ -2330,7 +2330,7 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
#ifdef EWOULDBLOCK
else if (nread == -1 && errno == EWOULDBLOCK)
;
#else
#endif
#ifdef O_NONBLOCK
else if (nread == -1 && errno == EAGAIN)
;
......@@ -2346,7 +2346,6 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
;
#endif /* O_NDELAY */
#endif /* O_NONBLOCK */
#endif /* EWOULDBLOCK */
#ifdef HAVE_PTYS
/* On some OSs with ptys, when the process on one end of
a pty exits, the other end gets an error reading with
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment