]> git.baikalelectronics.ru Git - kernel.git/commit
wait_task_zombie: don't fight with non-existing race with a dying ptracee
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 17 Oct 2007 06:26:59 +0000 (23:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:51 +0000 (08:42 -0700)
commit9b2f6639f7754f2f500bd272e11ea03fc2a5b639
tree13ab9fc1bd97be616511425d422e0c9188fbf5f3
parent16b3d9316986fb51f5e3477d95c699f91f7cf7dc
wait_task_zombie: don't fight with non-existing race with a dying ptracee

The "p->exit_signal == -1 && p->ptrace == 0" check and the comment are
bogus.  We already did exactly the same check in eligible_child(), we did
not drop tasklist_lock since then, and both variables need
write_lock(tasklist) to be changed.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/exit.c