Skip to content

Commit

Permalink
Update runc kill wrapper to take a string for signal
Browse files Browse the repository at this point in the history
Signed-off-by: Kathryn Baldauf <[email protected]>
  • Loading branch information
katiewasnothere committed Sep 14, 2021
1 parent d1e3ca2 commit 9d4c2d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runc.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,14 +340,14 @@ func (o *KillOpts) args() (out []string) {
}

// Kill sends the specified signal to the container
func (r *Runc) Kill(context context.Context, id string, sig int, opts *KillOpts) error {
func (r *Runc) Kill(context context.Context, id string, sig string, opts *KillOpts) error {
args := []string{
"kill",
}
if opts != nil {
args = append(args, opts.args()...)
}
return r.runOrError(r.command(context, append(args, id, strconv.Itoa(sig))...))
return r.runOrError(r.command(context, append(args, id, sig)...))
}

// Stats return the stats for a container like cpu, memory, and io
Expand Down

0 comments on commit 9d4c2d0

Please sign in to comment.