Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-10-20 08:17:59 +0400
committerChristopher Faylor <me@cgf.cx>2002-10-20 08:17:59 +0400
commitbfda61d41921b6945aa99f3b729e1b51f5782498 (patch)
tree7d9fa71c3b4a87ced44a2d2688777a5eb514b6cf
parentd25c187f126df8e4d1cff98368c24815d2088bd3 (diff)
* 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 d8b75b104..ffa4fb52a 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 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));