* [PATCH] has_stopped_jobs cleanup
@ 2006-08-16 7:17 Roland McGrath
0 siblings, 0 replies; only message in thread
From: Roland McGrath @ 2006-08-16 7:17 UTC (permalink / raw)
To: Linus Torvalds, Andrew Morton; +Cc: linux-kernel
This check has been obsolete since the introduction of TASK_TRACED.
Now TASK_STOPPED always means job control stop.
Signed-off-by: Roland McGrath <roland@redhat.com>
---
kernel/exit.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/kernel/exit.c b/kernel/exit.c
index dba194a..3783e5a 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -249,17 +249,6 @@ static int has_stopped_jobs(int pgrp)
do_each_task_pid(pgrp, PIDTYPE_PGID, p) {
if (p->state != TASK_STOPPED)
continue;
-
- /* If p is stopped by a debugger on a signal that won't
- stop it, then don't count p as stopped. This isn't
- perfect but it's a good approximation. */
- if (unlikely (p->ptrace)
- && p->exit_code != SIGSTOP
- && p->exit_code != SIGTSTP
- && p->exit_code != SIGTTOU
- && p->exit_code != SIGTTIN)
- continue;
-
retval = 1;
break;
} while_each_task_pid(pgrp, PIDTYPE_PGID, p);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-08-16 7:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-16 7:17 [PATCH] has_stopped_jobs cleanup Roland McGrath
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®