]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] setpgid: should work for sub-threads
authorOleg Nesterov <oleg@tv-sign.ru>
Sun, 8 Jan 2006 09:03:53 +0000 (01:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:14:01 +0000 (20:14 -0800)
commitee0acf90d320c29916ba8c5c1b2e908d81f5057d
treedef952e2e3ebf2b5ba10585055f12ef0cbed17f2
parent9a5d3023e626a0baf86ac6b892c983b3db13f22b
[PATCH] setpgid: should work for sub-threads

setpgid(0, pgid) or setpgid(forked_child_pid, pgid) does not work unless
the calling process is a thread_group_leader().

'man setpgid' does not tell anything about that, so I consider this
behaviour is a bug.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Oren Laadan <orenl@cs.columbia.edu>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sys.c