• Oleg Nesterov's avatar
    forget_original_parent: do not abuse child->ptrace_entry · 5dfc80be
    Oleg Nesterov authored
    By discussion with Roland.
    
    - Use ->sibling instead of ->ptrace_entry to chain the need to be
      release_task'd childs. Nobody else can use ->sibling, this task
      is EXIT_DEAD and nobody can find it on its own list.
    
    - rename ptrace_dead to dead_childs.
    
    - Now that we don't have the "parallel" untrace code, change back
      reparent_thread() to return void, pass dead_childs as an argument.
    
    Actually, I don't understand why do we notify /sbin/init when we
    reparent a zombie, probably it is better to reap it unconditionally.
    
    [akpm@linux-foundation.org: s/childs/children/]
    Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
    Cc: "Eric W. Biederman" <ebiederm@xmission.com>
    Cc: "Metzger, Markus T" <markus.t.metzger@intel.com>
    Cc: Roland McGrath <roland@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    5dfc80be
exit.c 43.7 KB