# HG changeset patch # User Richard M. Stallman # Date 829246392 0 # Node ID 0147f1c8cd2c79dc4870a013a1bb797f01025c96 # Parent cee88fc1cecd91cbc1ca127e9e5ed568e4dd73cc (sys_subshell): Add conditionals for DJGPP v2. diff -r cee88fc1cecd -r 0147f1c8cd2c src/sysdep.c --- 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 */ }