diff src/term.c @ 109376:409ecfd9731e

Remove subprocesses #ifdefs from term.c. * src/process.c (add_keyboard_wait_descriptor) (delete_keyboard_wait_descriptor): Move to common section, do nothing when subprocesses is not defined. * src/term.c (Fsuspend_tty, Fresume_tty, init_tty): Remove subprocesses #ifdefs.
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 12 Jul 2010 21:54:28 -0700
parents 3e07e13fe30a
children 68ca98ae70fb
line wrap: on
line diff
--- a/src/term.c	Mon Jul 12 21:47:45 2010 -0700
+++ b/src/term.c	Mon Jul 12 21:54:28 2010 -0700
@@ -2431,10 +2431,7 @@
         }
 
       reset_sys_modes (t->display_info.tty);
-
-#ifdef subprocesses
       delete_keyboard_wait_descriptor (fileno (f));
-#endif
 
 #ifndef MSDOS
       fclose (f);
@@ -2502,9 +2499,7 @@
       t->display_info.tty->input = t->display_info.tty->output;
 #endif
 
-#ifdef subprocesses
       add_keyboard_wait_descriptor (fd);
-#endif
 
       if (FRAMEP (t->display_info.tty->top_frame))
 	{
@@ -3523,9 +3518,7 @@
   terminal->name = xstrdup (name);
   tty->type = xstrdup (terminal_type);
 
-#ifdef subprocesses
   add_keyboard_wait_descriptor (0);
-#endif
 
   Wcm_clear (tty);
 
@@ -4017,9 +4010,7 @@
 
   if (tty->input)
     {
-#ifdef subprocesses
       delete_keyboard_wait_descriptor (fileno (tty->input));
-#endif
       if (tty->input != stdin)
         fclose (tty->input);
     }