summaryrefslogtreecommitdiff
path: root/src/anytun.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-03-04 23:16:21 +0000
committerChristian Pointner <equinox@anytun.org>2009-03-04 23:16:21 +0000
commitee21aecfdc3586a9d13685e84f1972435c739178 (patch)
tree16ea24a19eb6d2f28abaecd86448c28af3a8d445 /src/anytun.cpp
parentcleanup (less warnings on MSVC) (diff)
fixed signalcontroller
fixed BOOST_IS_ABSTRACT Problem with newer versions of boost
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r--src/anytun.cpp8
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);