dotcloud/docker — pull request #5342 by danielnorberg (2014-04-22 21:39:50+00:00)
Title: avoid suicide

`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."