Skip to contentSkip to conversation

Explicitly set pgid and sid of init process

PATCH New [email protected] 1 participant 1 message Mar 13, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 2/5 Explicitly set pgid and sid of init process

From: Sukadev Bhattiprolu <[email protected]>
Subject: [PATCH 2/5] Explicitly set pgid and sid of init process

Explicitly set pgid and sid of init process to 1.

Cc Cedric Le Goater <[email protected]>
Cc Dave Hansen <[email protected]>
Cc Serge Hallyn <[email protected]>
Cc Eric Biederman <[email protected]>
Cc Herbert Poetzl <[email protected]>

---

 init/main.c |    1 +
 1 file changed, 1 insertion(+)
init/main.c +1 -0
Index: lx26-20-mm2c/init/main.c
===================================================================
@@ -791,6 +791,7 @@ static int __init init(void * unused)
 	 */
 	init_pid_ns.child_reaper = current;
 
+	__set_special_pids(1, 1);
 	cad_pid = task_pid(current);
 
 	smp_prepare_cpus(max_cpus);