]> err.no Git - linux-2.6/commitdiff
wait_task_zombie: remove unneeded child->signal check
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 17 Oct 2007 06:26:57 +0000 (23:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:51 +0000 (08:42 -0700)
A zombie must have a valid ->signal, we are going to release it and
__exit_signal() starts with BUG_ON(!sig).

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

index 8b64c0371ae959d95a28ec4dc83637693b5f0fe5..9d6e0897a4476dac387116af94aa721f06183219 100644 (file)
@@ -1201,7 +1201,7 @@ static int wait_task_zombie(struct task_struct *p, int noreap,
                return 0;
        }
 
-       if (likely(p->real_parent == p->parent) && likely(p->signal)) {
+       if (likely(p->real_parent == p->parent)) {
                struct signal_struct *psig;
                struct signal_struct *sig;