diff options
author | Christian Pointner <equinox@anytun.org> | 2009-01-18 01:49:02 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-01-18 01:49:02 +0000 |
commit | b4b7e2b8b2c31e24fc2679e1949158003cbddabb (patch) | |
tree | 13b8ebc28ae31fe27d8cdcbd8a0836f7963cbd79 /src | |
parent | fixed anytun 0.2 compat mode (diff) |
moved signal init to better place
Diffstat (limited to 'src')
-rw-r--r-- | src/uanytun.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/uanytun.c b/src/uanytun.c index 1acf2a1..df54c57 100644 --- a/src/uanytun.c +++ b/src/uanytun.c @@ -254,6 +254,7 @@ int main_loop(tun_device_t* dev, udp_socket_t* sock, options_t* opt) if(ret) return ret; + signal_init(); int return_value = 0; while(!return_value) { FD_ZERO(&readfds); @@ -320,7 +321,6 @@ int main(int argc, char* argv[]) { log_init("uanytun", DAEMON); log_printf(NOTICE, "just started..."); - signal_init(); options_t opt; int ret = options_parse(&opt, argc, argv); @@ -352,7 +352,6 @@ int main(int argc, char* argv[]) #endif #endif - tun_device_t dev; ret = tun_init(&dev, opt.dev_name_, opt.dev_type_, opt.ifconfig_param_local_, opt.ifconfig_param_remote_netmask_); if(ret) { |