From: Richard M. Stallman Date: Thu, 11 Apr 1996 18:13:12 +0000 (+0000) Subject: (sys_subshell): Add conditionals for DJGPP v2. X-Git-Tag: emacs-19.34~869 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=718ca3cf530d81cb3180b2d40d0649d910833d19;p=emacs.git (sys_subshell): Add conditionals for DJGPP v2. --- 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 */ }