From: Roland McGrath Date: Wed, 14 Nov 2007 06:11:50 +0000 (-0800) Subject: wait_task_stopped: Check p->exit_state instead of TASK_TRACED X-Git-Tag: v2.6.24-rc3~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3474224e6a01924be40a8255636ea5522c1023a;p=pandora-kernel.git 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 Cc: Oleg Nesterov Cc: Alexey Dobriyan Cc: Kees Cook Acked-by: Scott James Remnant Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed