From: Sukadev Bhattiprolu Date: Fri, 11 May 2007 05:23:01 +0000 (-0700) Subject: Explicitly set pgid and sid of init process X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0e29b24aa6b3eb6c161cbb9e42fc20b47e67a7c6;p=linux-beck.git Explicitly set pgid and sid of init process Explicitly set pgid and sid of init process to 1. Signed-off-by: Sukadev Bhattiprolu Cc: Cedric Le Goater Cc: Dave Hansen Cc: Serge Hallyn Cc: Eric Biederman Cc: Herbert Poetzl Cc: Acked-by: Eric W. Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) */ init_pid_ns.child_reaper = current; + __set_special_pids(1, 1); cad_pid = task_pid(current); smp_prepare_cpus(max_cpus);