added case for unexpected signals in signal handler
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 12 Jan 2015 14:44:52 +0000 (15:44 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 12 Jan 2015 14:44:52 +0000 (15:44 +0100)
src/main.cpp

index 5c7ae3f..f3c2a82 100644 (file)
@@ -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 )