Add Wait() calls in the appropriate spots

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
This commit is contained in:
Erik Hollensbe
2014-05-27 12:26:56 -07:00
parent bdb5aa4c27
commit 92e41a02ce
4 changed files with 10 additions and 1 deletions
+1
View File
@@ -181,6 +181,7 @@ func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba
if err != nil {
if c.Process != nil {
c.Process.Kill()
c.Process.Wait()
}
return -1, err
}