Signals and PID 1: why docker stop takes 10 seconds
Select an icon to see what it is.
Step 2 of 6
PID 1 is special
In a pid namespace, the kernel only delivers a signal to PID 1 if that process installed a handler for it. SIGKILL and SIGSTOP sent from a parent namespace, such as the host, are the exceptions. So a program that never handles SIGTERM just ignores it when it runs as PID 1.
No handler installed
SigCgt in /proc/<pid>/status has no bit for signal 15default action is skipped for the init process of a pid namespace