Fixes bug 28612; bugfix on 0.3.5.3-alpha.
--- /dev/null
+ o Minor bugfixes (windows services):
+ - Make Tor start correctly as an NT service again: previously it
+ was broken by refactoring. Fixes bug 28612; bugfix on 0.3.5.3-alpha.
+
return cfg;
}
-static int
+int
run_tor_main_loop(void)
{
handle_signals();
int tor_init(int argc, char **argv);
+int run_tor_main_loop(void);
+
#endif /* !defined(TOR_MAIN_H) */
service_status.dwCurrentState = SERVICE_RUNNING;
service_fns.SetServiceStatus_fn(hStatus, &service_status);
set_main_thread();
- do_main_loop();
+ run_tor_main_loop();
tor_cleanup();
}
return;
switch (get_options()->command) {
case CMD_RUN_TOR:
- do_main_loop();
+ run_tor_main_loop();
break;
case CMD_LIST_FINGERPRINT:
case CMD_HASH_PASSWORD: