SSLMate / certspotter

Certificate Transparency Log Monitor
https://sslmate.com/certspotter
Mozilla Public License 2.0
955 stars 83 forks source link

catch ^C and clean up lock file #25

Closed jschauma closed 1 year ago

jschauma commented 6 years ago

Go doesn't have atexit(3), and the only signals guaranteed to be available on all platforms are SIGINT and SIGKILL, so we only catch SIGINT here. This allows us to at least have the user not have to manually clean up the state file after ^C'ing certspotter.