diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2018-06-15 11:05:10 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-06-15 11:06:07 -0700 |
commit | 52110bfc33f294805d89b82385911ab06b9330ba (patch) | |
tree | 1c0a9b6a8a1bae4ab2562a9684655c528bf52178 /runsc/cmd | |
parent | b31ac4e1dfc0eef688e2d8e85df965292690726e (diff) |
runsc/cmd: fix kill signal parsing
Signal is arg 1, not 2.
Killing with SIGABRT is useful to get Go traces.
Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Change-Id: I0b78e34a9de3fb3385108e26fdb4ff6e9347aeff
PiperOrigin-RevId: 200742743
Diffstat (limited to 'runsc/cmd')
-rw-r--r-- | runsc/cmd/kill.go | 2 |
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" } |