diff options
author | Othmar Gsenger <otti@anytun.org> | 2010-01-11 03:06:40 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2010-01-11 03:06:40 +0000 |
commit | 6399d05591fa48076747fe689a0bebd7c93339e7 (patch) | |
tree | 11b1943f5445ad01bcb896d33979c958a0ee0cb1 /src/anytun.cpp | |
parent | cleaned up crypto init (diff) |
cleanup
added cmd line option --debug
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r-- | src/anytun.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp index 6ae4217..4fa0b25 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -318,21 +318,15 @@ void receiver(TunDevice* dev, PacketSource* src) } } -#ifndef NO_DAEMON -void startSendRecvThreads(PrivInfo& privs, TunDevice* dev, PacketSource* src) -#else void startSendRecvThreads(TunDevice* dev, PacketSource* src) -#endif { src->waitUntilReady(); - boost::thread(boost::bind(sender, dev, src)); boost::thread(boost::bind(receiver, dev, src)); } - #ifdef WIN_SERVICE int main(int argc, char* argv[]) { @@ -472,13 +466,9 @@ int main(int argc, char* argv[]) connectThreads.create_thread(boost::bind(syncConnector, *it)); #endif - // wait for packet source to finish in a seperate thread in order - // to be still able to process signals while waiting -#ifndef NO_DAEMON - boost::thread(boost::bind(startSendRecvThreads, privs, &dev, src)); -#else + // wait for packet source to finish in a seperate thread in order + // to be still able to process signals while waiting boost::thread(boost::bind(startSendRecvThreads, &dev, src)); -#endif #if defined(WIN_SERVICE) int ret = 0; |