]> git.karo-electronics.de Git - karo-tx-linux.git/commit
setpgid(child) fails if the child was forked by sub-thread
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 31 Aug 2007 06:56:27 +0000 (23:56 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 26 Sep 2007 17:54:37 +0000 (10:54 -0700)
commit019f3a3f5f02958ec81e41e03f8d7c6e44ca73f9
tree2d0b28cf85df3cf4032e38d4e0f6f8a524a6c3ad
parent3a76a44ae920ef21d127e0488cb026d4f9772406
setpgid(child) fails if the child was forked by sub-thread

commit b07e35f94a7b6a059f889b904529ee907dc0634d in mainline tree

Spotted by Marcin Kowalczyk <qrczak@knm.org.pl>.

sys_setpgid(child) fails if the child was forked by sub-thread.

Fix the "is it our child" check. The previous commit
ee0acf90d320c29916ba8c5c1b2e908d81f5057d was not complete.

(this patch asks for the new same_thread_group() helper, but mainline doesn't
 have it yet).

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Roland McGrath <roland@redhat.com>
Tested-by: "Marcin 'Qrczak' Kowalczyk" <qrczak@knm.org.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/sys.c