You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kernel: kill all pidns processes when their init terminates.
This CL fixes an issue where processes in a PID namespace were not being
properly terminated when the namespace's init process exited.
Previously, if a "subreaper" process existed, it would adopt the orphaned
processes from the PID namespace. The correct behavior is for all processes
in the PID namespace to be killed when their init process dies.
The fix involves modifying findReparentTargetLocked to ensure that if the
exiting process is the init process for its PID namespace, no reparenting
target is returned. This leads to the termination of all other processes
in the namespace.
Fixes#11981
PiperOrigin-RevId: 791442773
0 commit comments