aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/wait.cc1
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 286df58..df099b0 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2002-11-23 Christopher Faylor <cgf@redhat.com>
+ * wait.cc (wait4): Force pending signal delivery before waiting for
+ process completion.
+
+2002-11-23 Christopher Faylor <cgf@redhat.com>
+
* include/cygwin/version.h: Bump DLL minor number.
2002-11-22 Christopher Faylor <cgf@redhat.com>
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))