Update go-runc to b3c048c028ddd789c6f9510c597f8b9c62f25359

This fixes an issue with Exec not returning a proper error

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure
2017-09-06 08:09:09 -07:00
parent 026ebe145c
commit f766801a99
2 changed files with 5 additions and 2 deletions

View File

@@ -224,7 +224,10 @@ func (r *Runc) Exec(context context.Context, id string, spec specs.Process, opts
}
}
}
_, err = Monitor.Wait(cmd, ec)
status, err := Monitor.Wait(cmd, ec)
if err == nil && status != 0 {
err = fmt.Errorf("%s did not terminate sucessfully", cmd.Args[0])
}
return err
}