summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2006-09-29 11:00:31 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-29 18:18:15 +0200
commitb9ecb2bd5d3ab8904752685696cb76aac1f3fef2 (patch)
treee831f310301d68bb16c0df0efca05a8045c9bb0b /kernel
parent[PATCH] I/O Error attempting to read last partial block of a file in an ISO96... (diff)
downloadlinux-b9ecb2bd5d3ab8904752685696cb76aac1f3fef2.tar.xz
linux-b9ecb2bd5d3ab8904752685696cb76aac1f3fef2.zip
[PATCH] has_stopped_jobs() cleanup
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> Cc: Oleg Nesterov <oleg@tv-sign.ru> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/exit.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 9961192d6055..3ec7b10eae38 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);