Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
bebdd288
Commit
bebdd288
authored
Jun 30, 2020
by
Alexander Færøy
🍍
Browse files
Merge remote-tracking branch 'nickm-github/bug32884_035' into maint-0.3.5
parents
0c0214bc
4f6901d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/bug32884
0 → 100644
View file @
bebdd288
o Minor bugfixes (embedded Tor):
- When starting Tor any time after the first time in a process, register
the thread in which it is running as the main thread. Previously, we
only did this on Windows, which could lead to bugs like 23081 on
non-Windows platforms. Fixes bug 32884; bugfix on 0.3.3.1-alpha.
src/lib/thread/compat_pthreads.c
View file @
bebdd288
...
...
@@ -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
();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment