changeset 110593:27428f586e5d

Reinstate ifdef subprocesses. * process.c (add_keyboard_wait_descriptor) (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
author Jan D <jan.h.d@swipnet.se>
date Sun, 26 Sep 2010 22:21:29 +0200
parents c06958da83b5
children 76b6c21279ec
files src/ChangeLog src/process.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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  <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.
 
--- 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.  */