From bf05eed64046e2ad1cdc22e1ee38d70af23f8888 Mon Sep 17 00:00:00 2001 From: Jan D Date: Sun, 26 Sep 2010 22:21:29 +0200 Subject: [PATCH] Reinstate ifdef subprocesses. * process.c (add_keyboard_wait_descriptor) (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses. --- src/ChangeLog | 3 +++ src/process.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 9474066af76..335938916cf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2010-09-26 Jan Djärv + * 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. 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, 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. */ -- 2.39.5