* sigproc.cc (wait_sig): Remove obsolete sigchld logic.
This commit is contained in:
parent
d25c187f12
commit
bfda61d419
|
@ -1,3 +1,7 @@
|
||||||
|
2002-10-20 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* sigproc.cc (wait_sig): Remove obsolete sigchld logic.
|
||||||
|
|
||||||
2002-10-20 Christopher Faylor <cgf@redhat.com>
|
2002-10-20 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
Rename _kill() to kill() throughout. Rename _raise() to raise()
|
Rename _kill() to kill() throughout. Rename _raise() to raise()
|
||||||
|
|
|
@ -1119,7 +1119,6 @@ wait_sig (VOID *self)
|
||||||
pending_signals = -1;
|
pending_signals = -1;
|
||||||
int saw_pending_signals = 0;
|
int saw_pending_signals = 0;
|
||||||
int saw_sigchld = 0;
|
int saw_sigchld = 0;
|
||||||
int dispatched_sigchld = 0;
|
|
||||||
for (int sig = -__SIGOFFSET; sig < NSIG; sig++)
|
for (int sig = -__SIGOFFSET; sig < NSIG; sig++)
|
||||||
{
|
{
|
||||||
while (InterlockedDecrement (myself->getsigtodo (sig)) >= 0)
|
while (InterlockedDecrement (myself->getsigtodo (sig)) >= 0)
|
||||||
|
@ -1152,9 +1151,7 @@ wait_sig (VOID *self)
|
||||||
/* A normal UNIX signal */
|
/* A normal UNIX signal */
|
||||||
default:
|
default:
|
||||||
sigproc_printf ("Got signal %d", sig);
|
sigproc_printf ("Got signal %d", sig);
|
||||||
int wasdispatched = sig_handle (sig, rc != 2);
|
sig_handle (sig, rc != 2);
|
||||||
if (sig == SIGCHLD && wasdispatched)
|
|
||||||
dispatched_sigchld = 1;
|
|
||||||
/* Need to decrement again to offset increment below since
|
/* Need to decrement again to offset increment below since
|
||||||
we really do want to decrement in this case. */
|
we really do want to decrement in this case. */
|
||||||
InterlockedDecrement (myself->getsigtodo (sig));
|
InterlockedDecrement (myself->getsigtodo (sig));
|
||||||
|
|
Loading…
Reference in New Issue