nicer cleanup
This commit is contained in:
+3
-1
@@ -115,8 +115,10 @@ void define_args()
|
|||||||
void shutdown()
|
void shutdown()
|
||||||
{
|
{
|
||||||
// stop threads
|
// stop threads
|
||||||
if (baseloop != NULL)
|
if (baseloop != NULL) {
|
||||||
delete baseloop;
|
delete baseloop;
|
||||||
|
baseloop = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// reset all signal handlers to default
|
// reset all signal handlers to default
|
||||||
signal(SIGHUP, SIG_DFL);
|
signal(SIGHUP, SIG_DFL);
|
||||||
|
|||||||
Reference in New Issue
Block a user