| std::signal(SIGINT, handle_signal); | std::signal(SIGINT, handle_signal); | ||||
| std::signal(SIGTERM, handle_signal); | std::signal(SIGTERM, handle_signal); | ||||
| #ifdef SIGQUIT | |||||
| // Some systems issue SIGQUIT :shrug: | |||||
| std::signal(SIGQUIT, handle_signal); | |||||
| #endif | |||||
| #ifdef SIGPIPE | #ifdef SIGPIPE | ||||
| // XXX: neo-io doesn't behave nicely when EOF is hit on sockets. This Isn't | // XXX: neo-io doesn't behave nicely when EOF is hit on sockets. This Isn't | ||||
| // easily fixed portably without simply blocking SIGPIPE globally. | // easily fixed portably without simply blocking SIGPIPE globally. |