Skip to content

Commit c0e3c08

Browse files
author
Mrunal Patel
authored
Merge pull request cri-o#305 from cyphar/runc-kill-arguments
oci: fix runc kill usage
2 parents 6133465 + da97526 commit c0e3c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oci/oci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ func (r *Runtime) ExecSync(c *Container, command []string, timeout int64) (resp
275275
func (r *Runtime) StopContainer(c *Container) error {
276276
c.opLock.Lock()
277277
defer c.opLock.Unlock()
278-
if err := utils.ExecCmdWithStdStreams(os.Stdin, os.Stdout, os.Stderr, r.path, "kill", c.name); err != nil {
278+
if err := utils.ExecCmdWithStdStreams(os.Stdin, os.Stdout, os.Stderr, r.path, "kill", c.name, "TERM"); err != nil {
279279
return err
280280
}
281281
i := 0

0 commit comments

Comments
 (0)