aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c
index 6ff8f472c26..d29168bcfd1 100644
--- a/src/process.c
+++ b/src/process.c
@@ -7086,10 +7086,12 @@ wait_reading_process_output (int time_limit, int microsecs, int read_kbd,
7086void 7086void
7087add_keyboard_wait_descriptor (int desc) 7087add_keyboard_wait_descriptor (int desc)
7088{ 7088{
7089#ifdef subprocesses /* actually means "not MSDOS" */
7089 FD_SET (desc, &input_wait_mask); 7090 FD_SET (desc, &input_wait_mask);
7090 FD_SET (desc, &non_process_wait_mask); 7091 FD_SET (desc, &non_process_wait_mask);
7091 if (desc > max_input_desc) 7092 if (desc > max_input_desc)
7092 max_input_desc = desc; 7093 max_input_desc = desc;
7094#endif
7093} 7095}
7094 7096
7095/* From now on, do not expect DESC to give keyboard input. */ 7097/* From now on, do not expect DESC to give keyboard input. */
@@ -7097,6 +7099,7 @@ add_keyboard_wait_descriptor (int desc)
7097void 7099void
7098delete_keyboard_wait_descriptor (int desc) 7100delete_keyboard_wait_descriptor (int desc)
7099{ 7101{
7102#ifdef subprocesses
7100 int fd; 7103 int fd;
7101 int lim = max_input_desc; 7104 int lim = max_input_desc;
7102 7105
@@ -7107,6 +7110,7 @@ delete_keyboard_wait_descriptor (int desc)
7107 for (fd = 0; fd < lim; fd++) 7110 for (fd = 0; fd < lim; fd++)
7108 if (FD_ISSET (fd, &input_wait_mask) || FD_ISSET (fd, &write_mask)) 7111 if (FD_ISSET (fd, &input_wait_mask) || FD_ISSET (fd, &write_mask))
7109 max_input_desc = fd; 7112 max_input_desc = fd;
7113#endif
7110} 7114}
7111 7115
7112/* Setup coding systems of PROCESS. */ 7116/* Setup coding systems of PROCESS. */