[Lxc-devel] [PATCH] pidspace: is_init()

Paul Mackerras paulus at samba.org
Wed Aug 9 04:04:27 UTC 2006


Sukadev Bhattiprolu writes:

> 	There are a lot of places in the kernel where we test for init
> 	because we give it special properties.  Most  significantly init
> 	must not die.  This results in code all over the kernel test
> 	->pid == 1.
> 
> 	Introduce is_init to capture this case.  
> 
> 	With multiple pid spaces for all of the cases affected we are
> 	looking for only the first process on the system, not some other
> 	process that has pid == 1. 
> 
> Signed-off-by: Eric W. Biederman <ebiederm at xmission.com>
> Signed-off-by: Sukadev Bhattiprolu <sukadev at us.ibm.com>

Acked-by: Paul Mackerras <paulus at samba.org>




More information about the lxc-devel mailing list