From d50d220655e9eb937bae059c420003f8d94151b6 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 30 Oct 2000 23:19:45 +0000 Subject: * signal.cc (kill_pgrp): Revert 25-Oct change. (kill_worker): Ditto. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/signal.cc | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'winsup') diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d96c1c6..0d8c0cd 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 30 16:54:26 2000 Christopher Faylor + + * signal.cc (kill_pgrp): Revert 25-Oct change. + (kill_worker): Ditto. + Sun Oct 29 20:52:31 2000 Christopher Faylor * include/cygwin/version.h: Bump DLL minor version number to 6. diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc index 782cd63..bfac33c 100644 --- a/winsup/cygwin/signal.cc +++ b/winsup/cygwin/signal.cc @@ -160,7 +160,7 @@ kill_worker (pid_t pid, int sig) sigproc_printf ("%d = sig_send, %E ", res); res = -1; } - else if (sendSIGCONT && ISSTATE(dest, PID_STOPPED)) + else if (sendSIGCONT) (void) sig_send (dest, SIGCONT); syscall_printf ("%d = kill_worker (%d, %d)", res, pid, sig); @@ -217,6 +217,8 @@ 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) -- cgit v1.1