diff options
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r-- | src/anytun.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp index eaa83ff..98bebb0 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -396,6 +396,10 @@ int main(int argc, char* argv[]) cLog.msg(Log::PRIO_NOTICE) << "anytun started..."; gOpt.parse_post(); // print warnings +#ifndef NO_SIGNALCONTROLLER + // this has to be called before the first thread is started + gSignalController.init(); +#endif gResolver.init(); #ifndef NO_DAEMON @@ -478,10 +482,6 @@ int main(int argc, char* argv[]) } #endif -#ifndef NO_SIGNALCONTROLLER - gSignalController.init(); -#endif - OptionHost* connTo = new OptionHost(); ThreadParam p(dev, *src, *connTo); |