* subshell.c (synchronize): Workaround for Cygwin (should not be

needed for the next version) - remove SIGCHLD blocking from
old_mask.
This commit is contained in:
Pavel Roskin 2002-08-19 22:28:00 +00:00
parent 728f254cd6
commit d1e02fba0f
2 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2002-08-19 Pavel Roskin <proski@gnu.org>
* subshell.c (synchronize): Workaround for Cygwin (should not be
needed for the next version) - remove SIGCHLD blocking from
old_mask.
* dlg.h: Remove all unused flags for create_dlg(). Adjust all
dependencies.

View File

@ -1039,6 +1039,12 @@ static void synchronize (void)
sigaddset (&sigchld_mask, SIGCHLD);
sigprocmask (SIG_BLOCK, &sigchld_mask, &old_mask);
/*
* SIGCHLD should not be blocked, but we unblock it just in case.
* This is known to be useful for cygwin 1.3.12 and older.
*/
sigdelset (&old_mask, SIGCHLD);
/* Wait until the subshell has stopped */
while (subshell_alive && !subshell_stopped)
sigsuspend (&old_mask);