aboutsummaryrefslogtreecommitdiff
path: root/src/lib/thread/compat_pthreads.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-01-14 12:46:14 -0500
committerNick Mathewson <nickm@torproject.org>2020-01-14 12:46:14 -0500
commitc948db425280f6d132fe0415617e73c63607d904 (patch)
tree7038274dde658aff04a52798071581b2f2529ec7 /src/lib/thread/compat_pthreads.c
parentc2dc94d8ebcd5fdd1076abb41ff0ecee6c092f4f (diff)
parent4f6901d7cc827e5bfa98467b7a568f725ce7fa9f (diff)
downloadtor-c948db425280f6d132fe0415617e73c63607d904.tar.gz
tor-c948db425280f6d132fe0415617e73c63607d904.zip
Merge remote-tracking branch 'tor-github/pr/1636'
Diffstat (limited to 'src/lib/thread/compat_pthreads.c')
-rw-r--r--src/lib/thread/compat_pthreads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/thread/compat_pthreads.c b/src/lib/thread/compat_pthreads.c
index f96257b312..d143b80252 100644
--- a/src/lib/thread/compat_pthreads.c
+++ b/src/lib/thread/compat_pthreads.c
@@ -265,6 +265,6 @@ tor_threads_init(void)
pthread_attr_setdetachstate(&attr_detached, PTHREAD_CREATE_DETACHED);
tor_assert(ret2 == 0);
threads_initialized = 1;
- set_main_thread();
}
+ set_main_thread();
}