mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
* 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:
parent
728f254cd6
commit
d1e02fba0f
@ -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.
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user