Merge pull request #305 from cyphar/runc-kill-arguments

oci: fix runc kill usage
This commit is contained in:
Mrunal Patel 2017-01-02 09:39:35 -08:00 committed by GitHub
commit c0e3c08a17

View file

@ -275,7 +275,7 @@ func (r *Runtime) ExecSync(c *Container, command []string, timeout int64) (resp
func (r *Runtime) StopContainer(c *Container) error {
c.opLock.Lock()
defer c.opLock.Unlock()
if err := utils.ExecCmdWithStdStreams(os.Stdin, os.Stdout, os.Stderr, r.path, "kill", c.name); err != nil {
if err := utils.ExecCmdWithStdStreams(os.Stdin, os.Stdout, os.Stderr, r.path, "kill", c.name, "TERM"); err != nil {
return err
}
i := 0