Showing the changes to assignment-client/src/AssignmentClientMonitor.cpp (1 of 2 files). Show all
Unified · Split
| @@ -12,7 +12,6 @@ · 11 unmodified lines | |||
| 12 | #include <signal.h> | 12 | #include <signal.h> |
| 13 | 13 | ||
| 14 | #include <LogHandler.h> | 14 | #include <LogHandler.h> |
| 15 | #include <ShutdownEventListener.h> | ||
| 16 | #include <AddressManager.h> | 15 | #include <AddressManager.h> |
| 17 | 16 | ||
| 18 | #include "AssignmentClientMonitor.h" | 17 | #include "AssignmentClientMonitor.h" |
| @@ -40,13 +39,6 @@ AssignmentClientMonitor::AssignmentClientMonitor(const unsigned int numAssignmen · 21 unmodified lines | |||
| 40 | { | 39 | { |
| 41 | // start the Logging class with the parent's target name | 40 | // start the Logging class with the parent's target name |
| 42 | LogHandler::getInstance().setTargetName(ASSIGNMENT_CLIENT_MONITOR_TARGET_NAME); | 41 | LogHandler::getInstance().setTargetName(ASSIGNMENT_CLIENT_MONITOR_TARGET_NAME); |
| 43 | |||
| 44 | // setup a shutdown event listener to handle SIGTERM or WM_CLOSE for us | ||
| 45 | #ifdef _WIN32 | ||
| 46 | installNativeEventFilter(&ShutdownEventListener::getInstance()); | ||
| 47 | #else | ||
| 48 | ShutdownEventListener::getInstance(); | ||
| 49 | #endif | ||
| 50 | 42 | ||
| 51 | // create a NodeList so we can receive stats from children | 43 | // create a NodeList so we can receive stats from children |
| 52 | DependencyManager::registerInheritance<LimitedNodeList, NodeList>(); | 44 | DependencyManager::registerInheritance<LimitedNodeList, NodeList>(); |