summaryrefslogtreecommitdiff
path: root/src/signalController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/signalController.cpp')
-rw-r--r--src/signalController.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/signalController.cpp b/src/signalController.cpp
index 244c32f..c690608 100644
--- a/src/signalController.cpp
+++ b/src/signalController.cpp
@@ -117,8 +117,13 @@ int SignalController::run()
if(ret)
break;
}
- else
- cLog.msg(Log::PRIO_NOTICE) << "SIG " << sig.first << " caught with message '" << sig.second << "' - ignoring";
+ else {
+ it = handler.find(SIGUNKNOWN);
+ if(it != handler.end())
+ it->second(sig.first, sig.second);
+ else
+ cLog.msg(Log::PRIO_NOTICE) << "SIG " << sig.first << " caught with message '" << sig.second << "' - ignoring";
+ }
}
for(CallbackMap::iterator it = callbacks.begin(); it != callbacks.end(); ++it)