Re: Linuxrc runs with PID 7

bert hubert (ahu@ds9a.nl)
Wed, 31 Jan 2001 20:29:41 +0100


On Wed, Jan 31, 2001 at 11:23:38AM -0800, Paul Powell wrote:
> This is a followup question to my previous question
> "Why isn't init at PID 1."

Lots of stuff assumes that PID 0 is the idle task, and that PID 1 is init.
For example, the kernel disallows ptraceing of init, based on its pid of 1.

If you are PID 1, make sure that you handle SIGCHLDs etcetera from daemons.
Check the source of init, I suspect it does something which tells the kernel
'I am your init'.

Regards,

bert hubert

-- 
PowerDNS                     Versatile DNS Services  
Trilab                       The Technology People   
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/