What needs to be done
Currently in container.go's Kill method when a signal is sent to the contaniers PID we assume it is killed and update state to specs.StateStopped.
Previously efforts to determine if the process was killed used kill -s 0 or unix.Kill(c.State.Pid, 0) which don't handle zombie processes. This causes the state to not be updated correctly when the process dies later on.
Acceptance criteria
Parent / tracking issue (optional)
No response
Blocked by (optional)
No response
Implementation notes (optional)
No response
Rough size (optional)
S — a few hours
What needs to be done
Currently in
container.go'sKillmethod when a signal is sent to the contaniers PID we assume it is killed and update state tospecs.StateStopped.Previously efforts to determine if the process was killed used
kill -s 0orunix.Kill(c.State.Pid, 0)which don't handle zombie processes. This causes the state to not be updated correctly when the process dies later on.Acceptance criteria
container_test.goto test for this.Parent / tracking issue (optional)
No response
Blocked by (optional)
No response
Implementation notes (optional)
No response
Rough size (optional)
S — a few hours