X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=c5f4c1035836ab83209297e9fbf6c11cb5fc8018;hp=f075168d2df5de2890b6218bffa4e9e650dfcdc8;hb=7d76e287598c8c18cadfb5818046d9dd1b0ad881;hpb=5672863e59e6a114ac6b66de98254b14266c0e61 diff --git a/src/tincd.c b/src/tincd.c index f075168d..c5f4c103 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -586,6 +586,7 @@ int main2(int argc, char **argv) { InitializeCriticalSection(&mutex); EnterCriticalSection(&mutex); #endif + char *priority = NULL; if(!detach()) return 1; @@ -612,8 +613,6 @@ int main2(int argc, char **argv) { /* Change process priority */ - char *priority = NULL; - if(get_config_string(lookup_config(config_tree, "ProcessPriority"), &priority)) { if(!strcasecmp(priority, "Normal")) { if (setpriority(NORMAL_PRIORITY_CLASS) != 0) { @@ -650,7 +649,7 @@ int main2(int argc, char **argv) { /* Shutdown properly. */ ifdebug(CONNECTIONS) - dump_device_stats(); + devops.dump_stats(); close_network_connections();