mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
add wait4 after kill
Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
This commit is contained in:
parent
34bd2d6229
commit
30ba7546cb
1 changed files with 1 additions and 0 deletions
|
@ -187,6 +187,7 @@ func (d *driver) Terminate(p *execdriver.Command) error {
|
|||
}
|
||||
if started == currentStartTime {
|
||||
err = syscall.Kill(p.Process.Pid, 9)
|
||||
syscall.Wait4(p.Process.Pid, nil, 0, nil)
|
||||
}
|
||||
d.removeContainerRoot(p.ID)
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue