aboutsummaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2022-09-04 00:48:42 -0400
committerMicah Elizabeth Scott <beth@torproject.org>2023-05-10 07:37:11 -0700
commita5b0c7b4045d02acc15375a7d8bbad727b36e0de (patch)
tree01858c7b45d0b8935d8e911ac334c953ce74f97c /src/feature
parent0716cd7cb203f21876bf6fe1e1acdc438d8e2031 (diff)
downloadtor-a5b0c7b4045d02acc15375a7d8bbad727b36e0de.tar.gz
tor-a5b0c7b4045d02acc15375a7d8bbad727b36e0de.zip
start the cpuworkers always, even for clients
prepares the way for client-side pow cpuworkers also happens to resolve bug https://bugs.torproject.org/tpo/core/tor/40617 (which went into 0.4.7.4-alpha) because now we survive initing the cpuworker subsystem when we're not a relay.
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/relay/relay_config.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/feature/relay/relay_config.c b/src/feature/relay/relay_config.c
index aa9d48beac..553b269ecf 100644
--- a/src/feature/relay/relay_config.c
+++ b/src/feature/relay/relay_config.c
@@ -1327,12 +1327,6 @@ options_act_relay(const or_options_t *old_options)
"Worker-related options changed. Rotating workers.");
const int server_mode_turned_on =
server_mode(options) && !server_mode(old_options);
- const int dir_server_mode_turned_on =
- dir_server_mode(options) && !dir_server_mode(old_options);
-
- if (server_mode_turned_on || dir_server_mode_turned_on) {
- cpu_init();
- }
if (server_mode_turned_on) {
ip_address_changed(0);