containerd/runtime/v1/shim/client
Ashray Jain 3e95727f39 Make killing shims more resilient
Currently, we send a single SIGKILL to the shim process
once and then we spin in a loop where we use kill(pid, 0)
to detect when the pid has disappeared completely.

Unfortunately, this has a race condition since pids can be reused causing us
to spin in an infinite loop when that happens.

This adds a timeout to this loop which logs a warning and exits the
infinite loop.

Signed-off-by: Ashray Jain <ashrayj@palantir.com>
2020-06-03 12:57:08 +01:00
..
client_linux.go Runtime v2 2018-07-17 10:21:29 -04:00
client_unix.go Runtime v2 2018-07-17 10:21:29 -04:00
client.go Make killing shims more resilient 2020-06-03 12:57:08 +01:00