|
@@ -56,7 +56,7 @@ func Exec(container *libcontainer.Container, term Terminal, rootfs, dataPath str
|
|
|
}
|
|
|
if err := WritePid(dataPath, command.Process.Pid, started); err != nil {
|
|
|
command.Process.Kill()
|
|
|
- command.Process.Wait()
|
|
|
+ command.Wait()
|
|
|
return -1, err
|
|
|
}
|
|
|
defer DeletePid(dataPath)
|
|
@@ -66,7 +66,7 @@ func Exec(container *libcontainer.Container, term Terminal, rootfs, dataPath str
|
|
|
cleaner, err := SetupCgroups(container, command.Process.Pid)
|
|
|
if err != nil {
|
|
|
command.Process.Kill()
|
|
|
- command.Process.Wait()
|
|
|
+ command.Wait()
|
|
|
return -1, err
|
|
|
}
|
|
|
if cleaner != nil {
|
|
@@ -75,7 +75,7 @@ func Exec(container *libcontainer.Container, term Terminal, rootfs, dataPath str
|
|
|
|
|
|
if err := InitializeNetworking(container, command.Process.Pid, syncPipe); err != nil {
|
|
|
command.Process.Kill()
|
|
|
- command.Process.Wait()
|
|
|
+ command.Wait()
|
|
|
return -1, err
|
|
|
}
|
|
|
|