mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-27 18:57:53 +00:00
The helper function we use for signal name mapping does not
check for negative numbers nor invalid (too-high) ones. This
can yield unexpected error messages:
# podman kill -s -1 foo
ERRO[0000] unknown signal "18446744073709551615"
This PR introduces a small wrapper for it that:
1) Strips off a leading dash, allowing '-1' or '-HUP'
as valid inputs; and
2) Rejects numbers <1 or >64 (SIGRTMAX)
Also adds a test suite checking signal handling as well as
ensuring that invalid signals are rejected by the command line.
Fixes: #4746
Signed-off-by: Ed Santiago <santiago@redhat.com>
|
||
|---|---|---|
| .. | ||
| parse | ||
| container.go | ||
| create.go | ||
| create_cli.go | ||
| create_cli_test.go | ||
| funcs.go | ||
| funcs_test.go | ||
| intermediate.go | ||
| intermediate_novarlink.go | ||
| intermediate_varlink.go | ||
| parallel.go | ||
| pod.go | ||
| volumes_shared.go | ||
| workers.go | ||