[PATCH] session_of_pgrp: kill unnecessary do_each_task_pid(PIDTYPE_PGID)
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 8 Dec 2006 10:38:03 +0000 (02:38 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 8 Dec 2006 16:28:52 +0000 (08:28 -0800)
commit62dfb5541a025b47df9405ff0219c7829a97d83b
tree4690d5d0bb750f977a0b73662019e5ced3ab99b4
parentf020bc468fe4a91d32046d448511978c7b611315
[PATCH] session_of_pgrp: kill unnecessary do_each_task_pid(PIDTYPE_PGID)

All members of the process group have the same sid and it can't be == 0.

NOTE: this code (and a similar one in sys_setpgid) was needed because it
was possibe to have ->session == 0. It's not possible any longer since

[PATCH] pidhash: don't use zero pids
Commit: c7c6464117a02b0d54feb4ebeca4db70fa493678

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/exit.c