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.
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.