Commit b9ecb2bd5d3ab8904752685696cb76aac1f3fef2
Committed by
Linus Torvalds
1 parent
fb50ae7446
Exists in
master
and in
20 other branches
[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>
Showing 1 changed file with 0 additions and 11 deletions Side-by-side Diff
kernel/exit.c
... | ... | @@ -249,17 +249,6 @@ |
249 | 249 | do_each_task_pid(pgrp, PIDTYPE_PGID, p) { |
250 | 250 | if (p->state != TASK_STOPPED) |
251 | 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 | 252 | retval = 1; |
264 | 253 | break; |
265 | 254 | } while_each_task_pid(pgrp, PIDTYPE_PGID, p); |