From: Christian Herdtweck Date: Mon, 12 Jan 2015 14:44:52 +0000 (+0100) Subject: added case for unexpected signals in signal handler X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=d49bbbf3ecbbaeb843e4013ae2f90bde992a8dd2;p=pingcheck added case for unexpected signals in signal handler --- 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 )