diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-04-11 18:13:12 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-04-11 18:13:12 +0000 |
commit | daed451aeead4498a80e6020c51bdbcf10732502 (patch) | |
tree | 6cc31dd5388187d4f2f4181abea90b0a30ca0bfc | |
parent | 63699ba111df74b7cda790f6cd5e966c8d699237 (diff) | |
download | emacs-daed451aeead4498a80e6020c51bdbcf10732502.tar.gz |
(sys_subshell): Add conditionals for DJGPP v2.
-rw-r--r-- | src/sysdep.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index c52de4ed716..5baf95c92b5 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -737,6 +737,10 @@ sys_subshell () #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 @@ sys_subshell () #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 */ } |