Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #254 from Microsoft/runc_kill_err
Browse files Browse the repository at this point in the history
Fix issue with runc kill
  • Loading branch information
jterry75 authored Aug 20, 2018
2 parents 4446ff2 + 843def1 commit f9d9074
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/gcs/runtime/runc/runc.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ func (c *container) Kill(signal oslayer.Signal) error {
cmd := exec.Command("runc", "--log", logPath, "kill", c.id, strconv.Itoa(int(signal)))
out, err := cmd.CombinedOutput()
if err != nil {
return errors.Wrapf(err, "runc kill failed with: %s", out)
if !strings.Contains(err.Error(), "os: process already finished") {
return errors.Wrapf(err, "runc kill failed with: %s", out)
}
}
return nil
}
Expand Down

0 comments on commit f9d9074

Please sign in to comment.