diff options
author | Karl Heuer <kwzh@gnu.org> | 1996-01-24 21:21:07 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1996-01-24 21:21:07 +0000 |
commit | 4eaf1baab3d3c91cf17428610dabfa4147d530ad (patch) | |
tree | c66e3fc8fe7c4721f72c093a3616b268ab288cfd /src/process.c | |
parent | e0e102756fce708f9b3bae4c89dc570e898b0f2e (diff) | |
download | emacs-4eaf1baab3d3c91cf17428610dabfa4147d530ad.tar.gz |
(wait_reading_process_input) [not subprocesses]: Do
not assume SELECT_TYPE is an int.
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index 9325728ba1b..c68309432b5 100644 --- a/src/process.c +++ b/src/process.c @@ -3776,7 +3776,7 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display) 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 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display) { 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 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display) /* 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) |