diff options
author | Roland McGrath <roland@redhat.com> | 2006-09-29 05:00:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-29 12:18:15 -0400 |
commit | b9ecb2bd5d3ab8904752685696cb76aac1f3fef2 (patch) | |
tree | e831f310301d68bb16c0df0efca05a8045c9bb0b | |
parent | fb50ae7446abb35184be029c51f825e45a4e0670 (diff) |
[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>
-rw-r--r-- | kernel/exit.c | 11 |
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) | |||
249 | do_each_task_pid(pgrp, PIDTYPE_PGID, p) { | 249 | do_each_task_pid(pgrp, PIDTYPE_PGID, p) { |
250 | if (p->state != TASK_STOPPED) | 250 | if (p->state != TASK_STOPPED) |
251 | continue; | 251 | continue; |
252 | |||
253 | /* If p is stopped by a debugger on a signal that won't | ||
254 | stop it, then don't count p as stopped. This isn't | ||
255 | perfect but it's a good approximation. */ | ||
256 | if (unlikely (p->ptrace) | ||
257 | && p->exit_code != SIGSTOP | ||
258 | && p->exit_code != SIGTSTP | ||
259 | && p->exit_code != SIGTTOU | ||
260 | && p->exit_code != SIGTTIN) | ||
261 | continue; | ||
262 | |||
263 | retval = 1; | 252 | retval = 1; |
264 | break; | 253 | break; |
265 | } while_each_task_pid(pgrp, PIDTYPE_PGID, p); | 254 | } while_each_task_pid(pgrp, PIDTYPE_PGID, p); |