diff options
-rw-r--r-- | server.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -65,7 +65,8 @@ int run_server(Config& config, plugins_container_type& plugins) boost::asio::io_context ioc{threads}; - boost::asio::signal_set signals(ioc, SIGINT, SIGTERM); + // for now, just terminate on SIGINT, SIGHUP and SIGTERM + boost::asio::signal_set signals(ioc, SIGINT, SIGTERM, SIGHUP); signals.async_wait([&](const boost::system::error_code& error, int signal_number){ std::cout << "Terminating via signal " << signal_number << std::endl; ioc.stop(); |