mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
container.Kill() might read a pid of 0 from container.State.Pid due to losing a race with container.monitor() calling container.State.SetStopped(). Sending a SIGKILL to pid 0 is undesirable as "If pid equals 0, then sig is sent to every process in the process group of the calling process." Docker-DCO-1.1-Signed-off-by: Daniel Norberg <daniel.norberg@gmail.com> (github: danielnorberg) Upstream-commit: b3ddc31b9581665eb15dedd0aa45bd37c1eb6815 Component: engine