diff options
author | Christian Pointner <equinox@anytun.org> | 2009-10-04 14:47:22 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-10-04 14:47:22 +0000 |
commit | dd86955000cbb03119c26279dd0c061acb817ee9 (patch) | |
tree | 7073ef3b080ef3344a8506c1b4028ce3e1abbd01 /src/signalController.cpp | |
parent | fixed spell error (diff) |
small cleanup
Diffstat (limited to 'src/signalController.cpp')
-rw-r--r-- | src/signalController.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/signalController.cpp b/src/signalController.cpp index b3029c3..75ba32c 100644 --- a/src/signalController.cpp +++ b/src/signalController.cpp @@ -149,10 +149,6 @@ SignalController::~SignalController() { for(HandlerMap::iterator it = handler.begin(); it != handler.end(); ++it) delete it->second; - -#ifndef _MSC_VER - if(thread) delete thread; -#endif } #ifndef _MSC_VER @@ -193,7 +189,7 @@ void SignalController::init() #error The signalhandler works only with pthreads #endif - thread = new boost::thread(boost::bind(&SignalController::handle, this)); + boost::thread(boost::bind(&SignalController::handle, this)); handler[SIGINT] = new SigIntHandler; handler[SIGQUIT] = new SigQuitHandler; |