* 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:
Christopher Faylor 2000-10-26 00:51:50 +00:00
parent cffaf20bf3
commit e21fa1ebb4
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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)