* signal.cc (kill_pgrp): Don't limit sending of signals to stopped processes
when sig < 0. (kill_worker): Only send SIGCONT to stopped processes when sendSIGCONT.
This commit is contained in:
parent
cffaf20bf3
commit
e21fa1ebb4
|
@ -1,3 +1,9 @@
|
|||
Wed Oct 25 20:49:59 2000 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
* signal.cc (kill_pgrp): Don't limit sending of signals to stopped
|
||||
processes when sig < 0.
|
||||
(kill_worker): Only send SIGCONT to stopped processes when sendSIGCONT.
|
||||
|
||||
Wed Oct 25 13:56:39 2000 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
* exceptions.cc (sig_handle): Just make sure that wait_sig loops when
|
||||
|
|
|
@ -160,7 +160,7 @@ kill_worker (pid_t pid, int sig)
|
|||
sigproc_printf ("%d = sig_send, %E ", res);
|
||||
res = -1;
|
||||
}
|
||||
else if (sendSIGCONT)
|
||||
else if (sendSIGCONT && ISSTATE(dest, PID_STOPPED))
|
||||
(void) sig_send (dest, SIGCONT);
|
||||
|
||||
syscall_printf ("%d = kill_worker (%d, %d)", res, pid, sig);
|
||||
|
@ -217,8 +217,6 @@ kill_pgrp (pid_t pid, int sig)
|
|||
continue;
|
||||
if (pid > 1 && p->pgid != pid)
|
||||
continue;
|
||||
if (sig < 0 && NOTSTATE(p, PID_STOPPED))
|
||||
continue;
|
||||
sigproc_printf ("killing pid %d, pgrp %d, p->ctty %d, myself->ctty %d",
|
||||
p->pid, p->pgid, p->ctty, myself->ctty);
|
||||
if (p == myself)
|
||||
|
|
Loading…
Reference in New Issue