summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.cpp b/server.cpp
index 5d1609d..51e80ba 100644
--- a/server.cpp
+++ b/server.cpp
@@ -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();