* wait.cc (wait4): Force pending signal delivery before waiting for process

completion.
This commit is contained in:
Christopher Faylor
2002-11-23 20:24:08 +00:00
parent 1d676025c9
commit 4497f2a88d
2 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,7 @@ wait4 (int intpid, int *status, int options, struct rusage *r)
while (1)
{
sig_dispatch_pending (0);
sigframe thisframe (mainthread);
sawsig = 0;
if (options & ~(WNOHANG | WUNTRACED))