]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Fix reparenting to the same thread group. (take 2)
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 22 Dec 2006 04:28:40 +0000 (21:28 -0700)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 22 Dec 2006 17:03:41 +0000 (09:03 -0800)
commitb2b2cbc4b2a2f389442549399a993a8306420baf
treef734441636bbeba1c07aeeb84a05e0deac7b8d64
parentef129412b4cbd6686d0749612cb9b76e207271f4
[PATCH] Fix reparenting to the same thread group. (take 2)

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: Eric 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: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/exit.c