# HG changeset patch # User Jan D # Date 1285532489 -7200 # Node ID 27428f586e5dbd882f028148e11a30222f190cc1 # Parent c06958da83b5357c870a314a7021b7a6f64291e0 Reinstate ifdef subprocesses. * process.c (add_keyboard_wait_descriptor) (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses. diff -r c06958da83b5 -r 27428f586e5d src/ChangeLog --- a/src/ChangeLog Sun Sep 26 18:20:01 2010 +0200 +++ b/src/ChangeLog Sun Sep 26 22:21:29 2010 +0200 @@ -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 -r c06958da83b5 -r 27428f586e5d src/process.c --- a/src/process.c Sun Sep 26 18:20:01 2010 +0200 +++ b/src/process.c Sun Sep 26 22:21:29 2010 +0200 @@ -7086,10 +7086,12 @@ 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 @@ void delete_keyboard_wait_descriptor (int desc) { +#ifdef subprocesses int fd; int lim = max_input_desc; @@ -7107,6 +7110,7 @@ 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. */