aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-12-18 13:56:22 -0500
committerNick Mathewson <nickm@torproject.org>2018-12-18 13:56:22 -0500
commit372df7a630afa4ffb0782287366b629916e0f728 (patch)
tree849f6b9beabf38ee94dcaba429669a4344b6d72d /src/app
parent0af0f78dffc14919052d235de51a8fee71aaf1a5 (diff)
parent26bbeb298d1f5692bc18f38d61379087436461a2 (diff)
downloadtor-372df7a630afa4ffb0782287366b629916e0f728.tar.gz
tor-372df7a630afa4ffb0782287366b629916e0f728.zip
Merge branch 'maint-0.3.5'
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main/main.c2
-rw-r--r--src/app/main/main.h2
-rw-r--r--src/app/main/ntmain.c4
3 files changed, 5 insertions, 3 deletions
diff --git a/src/app/main/main.c b/src/app/main/main.c
index 51113cd53c..aa322046fe 100644
--- a/src/app/main/main.c
+++ b/src/app/main/main.c
@@ -1267,7 +1267,7 @@ sandbox_init_filter(void)
return cfg;
}
-static int
+int
run_tor_main_loop(void)
{
handle_signals();
diff --git a/src/app/main/main.h b/src/app/main/main.h
index b64f2ef417..23a436703e 100644
--- a/src/app/main/main.h
+++ b/src/app/main/main.h
@@ -26,4 +26,6 @@ void tor_free_all(int postfork);
int tor_init(int argc, char **argv);
+int run_tor_main_loop(void);
+
#endif /* !defined(TOR_MAIN_H) */
diff --git a/src/app/main/ntmain.c b/src/app/main/ntmain.c
index 800720a0b4..8d2135a587 100644
--- a/src/app/main/ntmain.c
+++ b/src/app/main/ntmain.c
@@ -298,7 +298,7 @@ nt_service_body(int argc, char **argv)
service_status.dwCurrentState = SERVICE_RUNNING;
service_fns.SetServiceStatus_fn(hStatus, &service_status);
set_main_thread();
- do_main_loop();
+ run_tor_main_loop();
tor_cleanup();
}
@@ -326,7 +326,7 @@ nt_service_main(void)
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: