lestrrat-go / server-starter

Go port of start_server utility (Server::Starter)
MIT License
215 stars 21 forks source link

Fix signal-on-hup and signal-on-term is not working #7

Closed harukasan closed 7 years ago

harukasan commented 7 years ago

This PR fixes that --signal-on-hup and --signal-on-term options could not set signal correctly.

Because SigFromName returns always nil due to niceNameToSigs global variable is not set in init func. I also add test code for SigFromName.

lestrrat commented 7 years ago

Aaaahh, completely missed that. Thanks!