Interview Prep/Linux/Boot Process & Kernel

How does PID 1 differ from other processes?

IntermediateConceptBoot Process & Kernel
Answer

PID 1 is started by the kernel and must never exit; if it dies the kernel panics. It adopts orphaned processes and must reap them to prevent zombies. The kernel also does not deliver signals to PID 1 for which it has not installed a handler, so kill -9 1 does nothing. On the host that is systemd; inside a container it is whatever the entrypoint is.

All Linux questions Roadmap: Linux

More on Boot Process & Kernel