comparison src/process.c @ 15405:c27bb6e69e2d

(wait_reading_process_input): Move the O_NONBLOCK and O_NDELAY conditionals out of the EWOULDBLOCK conditional.
author Richard M. Stallman <rms@gnu.org>
date Tue, 11 Jun 1996 19:48:13 +0000
parents 6229fb866493
children 7c205bc80624
comparison
equal deleted inserted replaced
15404:9f223b2f92ac 15405:c27bb6e69e2d
2328 redisplay_preserve_echo_area (); 2328 redisplay_preserve_echo_area ();
2329 } 2329 }
2330 #ifdef EWOULDBLOCK 2330 #ifdef EWOULDBLOCK
2331 else if (nread == -1 && errno == EWOULDBLOCK) 2331 else if (nread == -1 && errno == EWOULDBLOCK)
2332 ; 2332 ;
2333 #else 2333 #endif
2334 #ifdef O_NONBLOCK 2334 #ifdef O_NONBLOCK
2335 else if (nread == -1 && errno == EAGAIN) 2335 else if (nread == -1 && errno == EAGAIN)
2336 ; 2336 ;
2337 #else 2337 #else
2338 #ifdef O_NDELAY 2338 #ifdef O_NDELAY
2344 subprocess termination and SIGCHLD. */ 2344 subprocess termination and SIGCHLD. */
2345 else if (nread == 0 && !NETCONN_P (proc)) 2345 else if (nread == 0 && !NETCONN_P (proc))
2346 ; 2346 ;
2347 #endif /* O_NDELAY */ 2347 #endif /* O_NDELAY */
2348 #endif /* O_NONBLOCK */ 2348 #endif /* O_NONBLOCK */
2349 #endif /* EWOULDBLOCK */
2350 #ifdef HAVE_PTYS 2349 #ifdef HAVE_PTYS
2351 /* On some OSs with ptys, when the process on one end of 2350 /* On some OSs with ptys, when the process on one end of
2352 a pty exits, the other end gets an error reading with 2351 a pty exits, the other end gets an error reading with
2353 errno = EIO instead of getting an EOF (0 bytes read). 2352 errno = EIO instead of getting an EOF (0 bytes read).
2354 Therefore, if we get an error reading and errno = 2353 Therefore, if we get an error reading and errno =