aboutsummaryrefslogtreecommitdiff
path: root/src/core/mainloop/cpuworker.c
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/core/mainloop/cpuworker.c
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/core/mainloop/cpuworker.c')
-rw-r--r--src/core/mainloop/cpuworker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mainloop/cpuworker.c b/src/core/mainloop/cpuworker.c
index 9ad8939e4d..4a22790b44 100644
--- a/src/core/mainloop/cpuworker.c
+++ b/src/core/mainloop/cpuworker.c
@@ -117,7 +117,7 @@ cpuworker_consensus_has_changed(const networkstatus_t *ns)
* during Tor's lifetime.
*/
void
-cpu_init(void)
+cpuworker_init(void)
{
if (!replyqueue) {
replyqueue = replyqueue_new(0);