]> Git Repo - linux.git/commit
wait_task_stopped: Check p->exit_state instead of TASK_TRACED
authorRoland McGrath <[email protected]>
Wed, 14 Nov 2007 06:11:50 +0000 (22:11 -0800)
committerLinus Torvalds <[email protected]>
Thu, 15 Nov 2007 16:36:27 +0000 (08:36 -0800)
commita3474224e6a01924be40a8255636ea5522c1023a
treee190dfea1792d364b93b0fbfe45019a0e8cdad09
parent99fee6d7e5748d96884667a4628118f7fc130ea0
wait_task_stopped: Check p->exit_state instead of TASK_TRACED

The original meaning of the old test (p->state > TASK_STOPPED) was
"not dead", since it was before TASK_TRACED existed and before the
state/exit_state split.  It was a wrong correction in commit
14bf01bb0599c89fc7f426d20353b76e12555308 to make this test for
TASK_TRACED instead.  It should have been changed when TASK_TRACED
was introducted and again when exit_state was introduced.

Signed-off-by: Roland McGrath <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Kees Cook <[email protected]>
Acked-by: Scott James Remnant <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/exit.c
This page took 0.050443 seconds and 4 git commands to generate.