summaryrefslogtreecommitdiff
path: root/src/anytun.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-22 06:16:10 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-22 06:16:10 +0000
commit5c0eb60b509edf766e649d081d30ab8dea83a8f4 (patch)
tree7e7ffa3e6aaa42f65ea13ac3297890e64b66944b /src/anytun.cpp
parentfixed build on Windows (after logging chances) (diff)
added signal controller (console control handler) to windows
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r--src/anytun.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp
index 1fb1fd8..b6f370b 100644
--- a/src/anytun.cpp
+++ b/src/anytun.cpp
@@ -476,8 +476,7 @@ int main(int argc, char* argv[])
#endif
#ifndef NO_SIGNALCONTROLLER
- SignalController sig;
- sig.init();
+ gSignalController.init();
#endif
OptionHost* connTo = new OptionHost();
@@ -503,7 +502,7 @@ int main(int argc, char* argv[])
int ret = 0;
gWinService.waitForStop();
#elif !defined(NO_SIGNALCONTROLLER)
- int ret = sig.run();
+ int ret = gSignalController.run();
#else
receiver(&p);
int ret = 0;