aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-06-14 13:28:32 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-06-14 13:28:32 +0300
commit319ce225815897d8626e85037ee203c4de634405 (patch)
tree61726d95dcbe10a24bd52be52b399578e1f75078 /src/app
parent438b7eec856b0caced7112dd0c87a8dae8df0c75 (diff)
parent990b434c4f4aa5e9c410bb083c1b98cead92bb59 (diff)
downloadtor-319ce225815897d8626e85037ee203c4de634405.tar.gz
tor-319ce225815897d8626e85037ee203c4de634405.zip
Merge branch 'bug30806'
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main/main.c4
-rw-r--r--src/app/main/shutdown.c2
-rw-r--r--src/app/main/subsystem_list.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/src/app/main/main.c b/src/app/main/main.c
index 04a0cec19d..31cee37637 100644
--- a/src/app/main/main.c
+++ b/src/app/main/main.c
@@ -653,10 +653,6 @@ tor_init(int argc, char *argv[])
return -1;
}
- if (tor_init_libevent_rng() < 0) {
- log_warn(LD_NET, "Problem initializing libevent RNG.");
- }
-
/* Scan/clean unparseable descriptors; after reading config */
routerparse_init();
diff --git a/src/app/main/shutdown.c b/src/app/main/shutdown.c
index cc0091a9ab..93d6351d1b 100644
--- a/src/app/main/shutdown.c
+++ b/src/app/main/shutdown.c
@@ -160,8 +160,6 @@ tor_free_all(int postfork)
subsystems_shutdown();
- tor_libevent_free_all();
-
/* Stuff in util.c and address.c*/
if (!postfork) {
esc_router_info(NULL);
diff --git a/src/app/main/subsystem_list.c b/src/app/main/subsystem_list.c
index f595796232..95d96f78d2 100644
--- a/src/app/main/subsystem_list.c
+++ b/src/app/main/subsystem_list.c
@@ -25,6 +25,7 @@
#include "lib/time/time_sys.h"
#include "lib/tls/tortls_sys.h"
#include "lib/wallclock/wallclock_sys.h"
+#include "lib/evloop/evloop_sys.h"
#include "feature/dirauth/dirauth_sys.h"
@@ -50,6 +51,8 @@ const subsys_fns_t *tor_subsystems[] = {
&sys_ocirc_event, /* -32 */
&sys_btrack, /* -30 */
+ &sys_evloop, /* -20 */
+
&sys_mainloop, /* 5 */
&sys_or, /* 20 */