From d49bbbf3ecbbaeb843e4013ae2f90bde992a8dd2 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Mon, 12 Jan 2015 15:44:52 +0100 Subject: [PATCH] added case for unexpected signals in signal handler --- src/main.cpp | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 5c7ae3f..f3c2a82 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -368,6 +368,12 @@ void signal_checker( const boost::system::error_code &error ) GlobalLogger.debug() << "Received signal SIGINT/SIGTERM --> will stop" << endl; want_stop = true; } + else + { + GlobalLogger.warning() << "Do not know how to deal with unexpected signal " + << signaled_flag << " --> will stop" << endl; + want_stop = true; + } } if ( want_stop ) -- 1.7.1