OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 2/5] Explicitly set pgid and sid of init process
[PATCH 2/5] Explicitly set pgid and sid of init process [message #17751] Tue, 13 March 2007 04:43
Sukadev Bhattiprolu is currently offline  Sukadev Bhattiprolu
Messages: 413
Registered: August 2006
Senior Member
From: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Subject: [PATCH 2/5] 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>
---

 init/main.c |    1 +
 1 file changed, 1 insertion(+)

Index: lx26-20-mm2c/init/main.c
===================================================================
--- lx26-20-mm2c.orig/init/main.c	2007-02-28 15:49:13.000000000 -0800
+++ lx26-20-mm2c/init/main.c	2007-02-28 15:49:35.000000000 -0800
@@ -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);
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Previous Topic: [PATCH 1/5] statically initialize struct pid for swapper
Next Topic: [PATCH 3/5] Use struct pid parameter in copy_process()
Goto Forum:
  


Current Time: Sun Aug 24 06:16:45 GMT 2025

Total time taken to generate the page: 0.06532 seconds