changeset 14991:0147f1c8cd2c

(sys_subshell): Add conditionals for DJGPP v2.
author Richard M. Stallman <rms@gnu.org>
date Thu, 11 Apr 1996 18:13:12 +0000
parents cee88fc1cecd
children 83b3924347a9
files src/sysdep.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Thu Apr 11 17:38:43 1996 +0000
+++ b/src/sysdep.c	Thu Apr 11 18:13:12 1996 +0000
@@ -737,6 +737,10 @@
 
 #ifdef MSDOS
   pid = 0;
+#if __DJGPP__ > 1
+  save_signal_handlers (saved_handlers);
+  synch_process_alive = 1;
+#endif /* __DJGPP__ > 1 */
 #else  
   pid = vfork ();
   if (pid == -1)
@@ -798,12 +802,17 @@
 #endif /* not MSDOS */
     }
 
+  /* Do this now if we did not do it before.  */
+#if !defined (MSDOS) || __DJGPP__ == 1
   save_signal_handlers (saved_handlers);
   synch_process_alive = 1;
+#endif
+
 #ifndef MSDOS
   wait_for_termination (pid);
 #endif
   restore_signal_handlers (saved_handlers);
+  synch_process_alive = 0;
 #endif /* !VMS */
 }