diff options
author | Christian Pointner <equinox@anytun.org> | 2009-02-22 06:16:10 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-02-22 06:16:10 +0000 |
commit | 5c0eb60b509edf766e649d081d30ab8dea83a8f4 (patch) | |
tree | 7e7ffa3e6aaa42f65ea13ac3297890e64b66944b /src/anytun-controld.cpp | |
parent | fixed build on Windows (after logging chances) (diff) |
added signal controller (console control handler) to windows
Diffstat (limited to 'src/anytun-controld.cpp')
-rw-r--r-- | src/anytun-controld.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/anytun-controld.cpp b/src/anytun-controld.cpp index 680d143..2c6c619 100644 --- a/src/anytun-controld.cpp +++ b/src/anytun-controld.cpp @@ -150,14 +150,13 @@ int main(int argc, char* argv[]) pidFile << pid; pidFile.close(); } - - SignalController sig; - sig.init(); + + gSignalController.init(); boost::thread * syncListenerThread; syncListenerThread = new boost::thread(boost::bind(syncListener)); - int ret = sig.run(); + int ret = gSignalController.run(); return ret; } |