]> git.baikalelectronics.ru Git - kernel.git/commit
wait_task_zombie: remove ->exit_state/exit_signal checks for WNOWAIT
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 8 Feb 2008 12:19:07 +0000 (04:19 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:27 +0000 (09:22 -0800)
commitc1ddfeed7e78413cb073d1ed8182a0a63d33b029
treeae2d4de96aabbafd3792316d14f40330ec64572d
parentd80f45d7d3aef63d44c33baaea2b98dcbd546211
wait_task_zombie: remove ->exit_state/exit_signal checks for WNOWAIT

The first "p->exit_state != EXIT_ZOMBIE" check doesn't make too much sense.
The exit_state was EXIT_ZOMBIE when the function was called, and another
thread can change it to EXIT_DEAD right after the check.

The second condition is not possible, detached non-traced threads were already
filtered out by eligible_child(), we didn't drop tasklist since then.

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