aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/wait.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-23 20:24:08 +0000
committerChristopher Faylor <me@cgf.cx>2002-11-23 20:24:08 +0000
commit4497f2a88d350c6c78d078e01fbca90c49213d71 (patch)
tree8db35468eee7ecf2316d3456281bf9cc99b74f4b /winsup/cygwin/wait.cc
parent1d676025c9458c7144f200e8ab160e1bf9177f93 (diff)
downloadnewlib-4497f2a88d350c6c78d078e01fbca90c49213d71.zip
newlib-4497f2a88d350c6c78d078e01fbca90c49213d71.tar.gz
newlib-4497f2a88d350c6c78d078e01fbca90c49213d71.tar.bz2
* wait.cc (wait4): Force pending signal delivery before waiting for process
completion.
Diffstat (limited to 'winsup/cygwin/wait.cc')
-rw-r--r--winsup/cygwin/wait.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/wait.cc b/winsup/cygwin/wait.cc
index 9040dc5..a4e7c60 100644
--- a/winsup/cygwin/wait.cc
+++ b/winsup/cygwin/wait.cc
@@ -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))