• Oleg Nesterov's avatar
    do_wait: cleanup delay_group_leader() usage · 96fabbf5
    Oleg Nesterov authored
    eligible_child() == 2 means delay_group_leader().  With the previous patch
    this only matters for EXIT_ZOMBIE task, we can move that special check to
    the only place it is really needed.
    
    Also, with this patch we don't skip security_task_wait() for the group
    leaders in a non-empty thread group.  I don't really understand the exact
    semantics of security_task_wait(), but imho this change is a bugfix.
    
    Also rearrange the code a bit to kill an ugly "check_continued" backdoor.
    Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
    Cc: Eric Paris <eparis@redhat.com>
    Cc: James Morris <jmorris@namei.org>
    Cc: Roland McGrath <roland@redhat.com>
    Cc: Stephen Smalley <sds@tycho.nsa.gov>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    96fabbf5
exit.c 42.1 KB