mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
192ed94410
When calling pthread_attr_setdetachstate, we were using 1 as the argument. But the pthreads documentation says that you have to say PTHREAD_CREATE_DETACH, which on Solaris is apparently 0x40. Calling pthread_attr_setdetachstate with 1 crashes on Solaris with FLTBOUNDS. (Because we're so late in the release cycle, I made the code define PTHREAD_CREATE_DETACHED if it doesn't exist, so we aren't likely to break any other platforms.) This bug was introduced when we made threading mandatory in 0.2.6.1-alpha; previously, we had force-disabled threading on Solaris. See #9495 discussion.
5 lines
192 B
Plaintext
5 lines
192 B
Plaintext
o Major bugfixes (portability):
|
|
- Do not crash on startup when running on Solaris. Fixes a bug
|
|
related to our fix for 9495; bugfix on 0.2.6.1-alpha. Reported
|
|
by "ruebezahl".
|