diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-08 17:52:30 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-08 17:52:30 +0000 |
commit | c05364b65344a0cf83657b8abd3ac65b0e62f194 (patch) | |
tree | b6db47c9ecf2f91bca3c5337303f240f3c1306be | |
parent | 24d76efadc0230efa00a41b788bdc7a44f159f8d (diff) |
(stop_pgrp): Don't do anything if ORPHANED.
-rw-r--r-- | trans/crash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trans/crash.c b/trans/crash.c index ae040f87..863499e5 100644 --- a/trans/crash.c +++ b/trans/crash.c @@ -89,7 +89,7 @@ stop_pgrp (process_t userproc, mach_port_t cttyid) int i; err = proc_getpids (userproc, &pid, &pgrp, &orphaned); - if (err) + if (err || orphaned) return; /* Use USERPROC so that if it's just died we get an error and don't do @@ -97,7 +97,7 @@ stop_pgrp (process_t userproc, mach_port_t cttyid) err = proc_getpgrppids (userproc, pgrp, &pids, &numpids); if (err) return; - + for (i = 0; i < numpids; i++) if (pids[i] != pid) { |