Commit Graph

2 Commits

Author SHA1 Message Date
Kir Kolyshkin
5ef66e48f2 ParseSignal: drop add'l check for numeric signals
The kernel will return an error anyway.

Drop the test case as well.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2020-03-17 14:17:03 -07:00
Shengjing Zhu
f0d5dd3c82 Use unix.SignalNum in ParseSignal on unix platform
This removes the signalMap on unix platform, since
the signalMap on different architectures is not same,
especially it's wrong on mipsx.

golang.org/x/sys/unix now has a SignalNum func to convert
signal name to a number, thus there's no need to keep
this redundant map.

Windows platform still needs to have a signalMap, since
golang.org/x/sys/windows doesn't have corresponding
functions.

Address: #3061

Signed-off-by: Shengjing Zhu <zhsj@debian.org>
2019-03-03 22:10:58 +08:00