Mercurial > emacs
changeset 14278:3562c5f43780
(wait_reading_process_input) [not subprocesses]: Do
not assume SELECT_TYPE is an int.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 24 Jan 1996 21:21:07 +0000 |
parents | f0d30883b329 |
children | 085bc709c11d |
files | src/process.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Wed Jan 24 20:06:06 1996 +0000 +++ b/src/process.c Wed Jan 24 21:21:07 1996 +0000 @@ -3776,7 +3776,7 @@ int do_display; { EMACS_TIME end_time, timeout, *timeout_p; - int waitchannels; + SELECT_TYPE waitchannels; /* What does time_limit really mean? */ if (time_limit || microsecs) @@ -3806,7 +3806,10 @@ { int nfds; - waitchannels = XINT (read_kbd) ? 1 : 0; + if (XINT (read_kbd)) + FD_SET (0, &waitchannels); + else + FD_ZERO (&waitchannels); /* If calling from keyboard input, do not quit since we want to return C-g as an input character. @@ -3849,7 +3852,7 @@ /* If the system call was interrupted, then go around the loop again. */ if (errno == EINTR) - waitchannels = 0; + FD_ZERO (&waitchannels); } #ifdef sun else if (nfds > 0 && (waitchannels & 1) && interrupt_input)