Closed harukasan closed 7 years ago
This PR fixes that --signal-on-hup and --signal-on-term options could not set signal correctly.
--signal-on-hup
--signal-on-term
Because SigFromName returns always nil due to niceNameToSigs global variable is not set in init func. I also add test code for SigFromName.
SigFromName
nil
niceNameToSigs
Aaaahh, completely missed that. Thanks!
This PR fixes that
--signal-on-hup
and--signal-on-term
options could not set signal correctly.Because
SigFromName
returns alwaysnil
due toniceNameToSigs
global variable is not set in init func. I also add test code forSigFromName
.