aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/process.c b/src/process.c
index 0036ce595f5..b23f06fd025 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4432,14 +4432,8 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
4432 total_nread += nread; 4432 total_nread += nread;
4433 got_some_input = 1; 4433 got_some_input = 1;
4434 } 4434 }
4435#ifdef EIO 4435 else if (nread == -1 && (errno == EIO || errno == EAGAIN))
4436 else if (nread == -1 && EIO == errno)
4437 break; 4436 break;
4438#endif
4439#ifdef EAGAIN
4440 else if (nread == -1 && EAGAIN == errno)
4441 break;
4442#endif
4443#ifdef EWOULDBLOCK 4437#ifdef EWOULDBLOCK
4444 else if (nread == -1 && EWOULDBLOCK == errno) 4438 else if (nread == -1 && EWOULDBLOCK == errno)
4445 break; 4439 break;
@@ -5517,13 +5511,10 @@ send_process (Lisp_Object proc, const char *buf, ptrdiff_t len,
5517 5511
5518 if (rv < 0) 5512 if (rv < 0)
5519 { 5513 {
5520 if (0 5514 if (errno == EAGAIN
5521#ifdef EWOULDBLOCK 5515#ifdef EWOULDBLOCK
5522 || errno == EWOULDBLOCK 5516 || errno == EWOULDBLOCK
5523#endif 5517#endif
5524#ifdef EAGAIN
5525 || errno == EAGAIN
5526#endif
5527 ) 5518 )
5528 /* Buffer is full. Wait, accepting input; 5519 /* Buffer is full. Wait, accepting input;
5529 that may allow the program 5520 that may allow the program