Commit bf05eed6 authored by Jan D's avatar Jan D
Browse files

Reinstate ifdef subprocesses.

* process.c (add_keyboard_wait_descriptor) (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
parent 3fad2ad2
2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
 
* process.c (add_keyboard_wait_descriptor)
(delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
* process.h (add_read_fd, delete_read_fd, add_write_fd)
(delete_write_fd): Declare.
 
......
......@@ -7086,10 +7086,12 @@ wait_reading_process_output (int time_limit, int microsecs, int read_kbd,
void
add_keyboard_wait_descriptor (int desc)
{
#ifdef subprocesses /* actually means "not MSDOS" */
FD_SET (desc, &input_wait_mask);
FD_SET (desc, &non_process_wait_mask);
if (desc > max_input_desc)
max_input_desc = desc;
#endif
}
/* From now on, do not expect DESC to give keyboard input. */
......@@ -7097,6 +7099,7 @@ add_keyboard_wait_descriptor (int desc)
void
delete_keyboard_wait_descriptor (int desc)
{
#ifdef subprocesses
int fd;
int lim = max_input_desc;
......@@ -7107,6 +7110,7 @@ delete_keyboard_wait_descriptor (int desc)
for (fd = 0; fd < lim; fd++)
if (FD_ISSET (fd, &input_wait_mask) || FD_ISSET (fd, &write_mask))
max_input_desc = fd;
#endif
}
/* Setup coding systems of PROCESS. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment