ptrace: wait_task_zombie: s/->parent/->real_parent/
commitd1e98f429aa10132b3010ba3b0be47552a2eb14b
authorOleg Nesterov <oleg@redhat.com>
Wed, 17 Jun 2009 23:27:34 +0000 (17 16:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:03:51 +0000 (18 13:03 -0700)
treebd4458a65ac9ff942a3ba6dfcd70c281e15e067a
parent8053bdd5ce15dcf043d41a4dd6cac4a5567effdc
ptrace: wait_task_zombie: s/->parent/->real_parent/

Change wait_task_zombie() to use ->real_parent instead of ->parent.  We
could even use current afaics, but ->real_parent is more clean.

We know that the child is not ptrace_reparented() and thus they are equal.
 But we should avoid using task_struct->parent, we are going to remove it.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: 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