Browse Source

add wait4 after kill

Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
Victor Vieux 11 years ago
parent
commit
30ba7546cb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      daemon/execdriver/native/driver.go

+ 1 - 0
daemon/execdriver/native/driver.go

@@ -187,6 +187,7 @@ func (d *driver) Terminate(p *execdriver.Command) error {
 	}
 	}
 	if started == currentStartTime {
 	if started == currentStartTime {
 		err = syscall.Kill(p.Process.Pid, 9)
 		err = syscall.Kill(p.Process.Pid, 9)
+		syscall.Wait4(p.Process.Pid, nil, 0, nil)
 	}
 	}
 	d.removeContainerRoot(p.ID)
 	d.removeContainerRoot(p.ID)
 	return err
 	return err