diff options
Diffstat (limited to 'cpp/src/qpid/broker/SignalHandler.cpp')
-rw-r--r-- | cpp/src/qpid/broker/SignalHandler.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cpp/src/qpid/broker/SignalHandler.cpp b/cpp/src/qpid/broker/SignalHandler.cpp index fee54cfdfc..b565cfd419 100644 --- a/cpp/src/qpid/broker/SignalHandler.cpp +++ b/cpp/src/qpid/broker/SignalHandler.cpp @@ -18,8 +18,8 @@ * under the License. * */ -#include "SignalHandler.h" -#include "Broker.h" +#include "qpid/broker/SignalHandler.h" +#include "qpid/broker/Broker.h" #include <signal.h> namespace qpid { @@ -36,11 +36,10 @@ void SignalHandler::setBroker(const boost::intrusive_ptr<Broker>& b) { signal(SIGHUP,SIG_IGN); // TODO aconway 2007-07-18: reload config. signal(SIGCHLD,SIG_IGN); - signal(SIGTSTP,SIG_IGN); - signal(SIGTTOU,SIG_IGN); - signal(SIGTTIN,SIG_IGN); } +void SignalHandler::shutdown() { shutdownHandler(0); } + void SignalHandler::shutdownHandler(int) { if (broker.get()) { broker->shutdown(); |