Skip to content

Commit 9d4c2d0

Browse files
author
Kathryn Baldauf
committed
Update runc kill wrapper to take a string for signal
Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
1 parent d1e3ca2 commit 9d4c2d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,14 @@ func (o *KillOpts) args() (out []string) {
340340
}
341341

342342
// Kill sends the specified signal to the container
343-
func (r *Runc) Kill(context context.Context, id string, sig int, opts *KillOpts) error {
343+
func (r *Runc) Kill(context context.Context, id string, sig string, opts *KillOpts) error {
344344
args := []string{
345345
"kill",
346346
}
347347
if opts != nil {
348348
args = append(args, opts.args()...)
349349
}
350-
return r.runOrError(r.command(context, append(args, id, strconv.Itoa(sig))...))
350+
return r.runOrError(r.command(context, append(args, id, sig)...))
351351
}
352352

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

0 commit comments

Comments
 (0)