summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--runsc/cmd/kill.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/cmd/kill.go b/runsc/cmd/kill.go
index 97a505fac..0979b002b 100644
--- a/runsc/cmd/kill.go
+++ b/runsc/cmd/kill.go
@@ -72,7 +72,7 @@ func (*Kill) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) su
// The OCI command-line spec says that the signal should be specified
// via a flag, but runc (and things that call runc) pass it as an
// argument.
- signal := f.Arg(2)
+ signal := f.Arg(1)
if signal == "" {
signal = "TERM"
}