diff options
Diffstat (limited to 'winsup/cygwin/signal.cc')
-rw-r--r-- | winsup/cygwin/signal.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc index 5b42a1f..07417de 100644 --- a/winsup/cygwin/signal.cc +++ b/winsup/cygwin/signal.cc @@ -202,7 +202,7 @@ _kill (pid_t pid, int sig) /* Silently ignore stop signals from a member of orphaned process group. FIXME: Why??? */ - if (ISSTATE(myself, PID_ORPHANED) && + if (ISSTATE (myself, PID_ORPHANED) && (sig == SIGTSTP || sig == SIGTTIN || sig == SIGTTOU)) sig = 0; @@ -230,7 +230,7 @@ kill_pgrp (pid_t pid, int sig) /* Is it a process we want to kill? */ if ((pid == 0 && (p->pgid != myself->pgid || p->ctty != myself->ctty)) || (pid > 1 && p->pgid != pid) || - (sig < 0 && NOTSTATE(p, PID_STOPPED))) + (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); |