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.
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. */
void
delete_keyboard_wait_descriptor (int desc)
{
+#ifdef subprocesses
int fd;
int lim = max_input_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. */