aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-10-20 04:17:59 +0000
committerChristopher Faylor <me@cgf.cx>2002-10-20 04:17:59 +0000
commitbfda61d41921b6945aa99f3b729e1b51f5782498 (patch)
tree7d9fa71c3b4a87ced44a2d2688777a5eb514b6cf
parentd25c187f126df8e4d1cff98368c24815d2088bd3 (diff)
downloadnewlib-bfda61d41921b6945aa99f3b729e1b51f5782498.zip
newlib-bfda61d41921b6945aa99f3b729e1b51f5782498.tar.gz
newlib-bfda61d41921b6945aa99f3b729e1b51f5782498.tar.bz2
* sigproc.cc (wait_sig): Remove obsolete sigchld logic.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/sigproc.cc5
2 files changed, 5 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index d8b75b1..ffa4fb5 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2002-10-20 Christopher Faylor <cgf@redhat.com>
+ * sigproc.cc (wait_sig): Remove obsolete sigchld logic.
+
+2002-10-20 Christopher Faylor <cgf@redhat.com>
+
Rename _kill() to kill() throughout. Rename _raise() to raise()
throughout. Rename _pid() to pid() throughout.
* Makefile.in: Compile some objects with -fomit-frame-pointer.
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index 863a22d..4424705 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -1119,7 +1119,6 @@ wait_sig (VOID *self)
pending_signals = -1;
int saw_pending_signals = 0;
int saw_sigchld = 0;
- int dispatched_sigchld = 0;
for (int sig = -__SIGOFFSET; sig < NSIG; sig++)
{
while (InterlockedDecrement (myself->getsigtodo (sig)) >= 0)
@@ -1152,9 +1151,7 @@ wait_sig (VOID *self)
/* A normal UNIX signal */
default:
sigproc_printf ("Got signal %d", sig);
- int wasdispatched = sig_handle (sig, rc != 2);
- if (sig == SIGCHLD && wasdispatched)
- dispatched_sigchld = 1;
+ sig_handle (sig, rc != 2);
/* Need to decrement again to offset increment below since
we really do want to decrement in this case. */
InterlockedDecrement (myself->getsigtodo (sig));