]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix reparenting to the same thread group. (take 2)
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 8 Apr 2007 21:47:24 +0000 (23:47 +0200)
committerAdrian Bunk <bunk@stusta.de>
Sun, 8 Apr 2007 21:47:24 +0000 (23:47 +0200)
commitf95540a5193f909b5700555ceafc69bcb13d2174
treebe1853eff7173c0dcd2881b36433db2a1911ce0d
parent928fb605c9107cc5c4e4e77d99ea455651a4635f
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.

This fixes the issues identified by Albert Cahalan in thread
http://lkml.org/lkml/2006/12/21/22

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
kernel/exit.c