Fix race in set running

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby
2014-01-17 17:42:22 -08:00
parent 381d593d04
commit 77936ba1a1
2 changed files with 6 additions and 3 deletions
-1
View File
@@ -123,7 +123,6 @@ func (d *driver) Wait(id string, duration time.Duration) error {
func (d *driver) kill(c *execdriver.Process, sig int) error {
output, err := exec.Command("lxc-kill", "-n", c.ID, strconv.Itoa(sig)).CombinedOutput()
if err != nil {
fmt.Printf("--->%s\n", output)
return fmt.Errorf("Err: %s Output: %s", err, output)
}
return nil