]> err.no Git - linux-2.6/commit
[PATCH] setpgid: should work for sub-threads
authorOren Laadan <orenl@cs.columbia.edu>
Sun, 8 Jan 2006 09:03:58 +0000 (01:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:14:01 +0000 (20:14 -0800)
commite19f247a3dbd85485ec13174817ae9c2478fe541
tree1d6f6fa28d70d51d1ce71264b07ec1afd768e9a6
parentee0acf90d320c29916ba8c5c1b2e908d81f5057d
[PATCH] setpgid: should work for sub-threads

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