From bfda61d41921b6945aa99f3b729e1b51f5782498 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 20 Oct 2002 04:17:59 +0000 Subject: [PATCH] * sigproc.cc (wait_sig): Remove obsolete sigchld logic. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/sigproc.cc | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d8b75b104..ffa4fb52a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2002-10-20 Christopher Faylor + + * sigproc.cc (wait_sig): Remove obsolete sigchld logic. + 2002-10-20 Christopher Faylor Rename _kill() to kill() throughout. Rename _raise() to raise() 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));