summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/sigproc.cc
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 /winsup/cygwin/sigproc.cc
parentd25c187f126df8e4d1cff98368c24815d2088bd3 (diff)
downloadcygnal-bfda61d41921b6945aa99f3b729e1b51f5782498.tar.gz
cygnal-bfda61d41921b6945aa99f3b729e1b51f5782498.tar.bz2
cygnal-bfda61d41921b6945aa99f3b729e1b51f5782498.zip
* sigproc.cc (wait_sig): Remove obsolete sigchld logic.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r--winsup/cygwin/sigproc.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index 863a22d36..4424705a0 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));