aboutsummaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorSukadev Bhattiprolu <sukadev@us.ibm.com>2007-05-11 01:23:01 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-11 11:29:35 -0400
commit0e29b24aa6b3eb6c161cbb9e42fc20b47e67a7c6 (patch)
tree1278ef6ce9da5c3437624d4c02449c4662485f38 /init/main.c
parent820e45db2380eb1545fa2bc5d34b8b2f2933faeb (diff)
Explicitly set pgid and sid of init process
Explicitly set pgid and sid of init process to 1. Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com> Cc: Cedric Le Goater <clg@fr.ibm.com> Cc: Dave Hansen <haveblue@us.ibm.com> Cc: Serge Hallyn <serue@us.ibm.com> Cc: Eric Biederman <ebiederm@xmission.com> Cc: Herbert Poetzl <herbert@13thfloor.at> Cc: <containers@lists.osdl.org> Acked-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index e8d080cab443..1940fa75e82e 100644
--- a/init/main.c
+++ b/init/main.c
@@ -801,6 +801,7 @@ static int __init kernel_init(void * unused)
801 */ 801 */
802 init_pid_ns.child_reaper = current; 802 init_pid_ns.child_reaper = current;
803 803
804 __set_special_pids(1, 1);
804 cad_pid = task_pid(current); 805 cad_pid = task_pid(current);
805 806
806 smp_prepare_cpus(max_cpus); 807 smp_prepare_cpus(max_cpus);