• Eric W. Biederman's avatar
    [PATCH] Fix reparenting to the same thread group. (take 2) · b2b2cbc4
    Eric W. Biederman authored
    This patch fixes the case when we reparent to a different thread in the
    same thread group.  This modifies the code so that we do not send
    signals and do not change the signal to send to SIGCHLD unless we have
    change the thread group of our parents.  It also suppresses sending
    pdeath_sig in this cas as well since the result of geppid doesn't
    change.
    
    Thanks to Oleg for spotting my bug of only fixing this for non-ptraced
    tasks.
    Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Albert Cahalan <acahalan@gmail.com>
    Cc: Andrew Morton <akpm@osdl.org>
    Cc: Roland McGrath <roland@redhat.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Coywolf Qi Hunt <qiyong@fc-cn.com>
    Acked-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    b2b2cbc4
exit.c 41.7 KB