mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Merge branch 'bug9495_redux_v2' into maint-0.2.6
This commit is contained in:
commit
a95e18b358
4
changes/bug9495_redux
Normal file
4
changes/bug9495_redux
Normal file
@ -0,0 +1,4 @@
|
||||
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".
|
@ -279,7 +279,11 @@ tor_threads_init(void)
|
||||
pthread_mutexattr_init(&attr_recursive);
|
||||
pthread_mutexattr_settype(&attr_recursive, PTHREAD_MUTEX_RECURSIVE);
|
||||
tor_assert(0==pthread_attr_init(&attr_detached));
|
||||
tor_assert(0==pthread_attr_setdetachstate(&attr_detached, 1));
|
||||
#ifndef PTHREAD_CREATE_DETACHED
|
||||
#define PTHREAD_CREATE_DETACHED 1
|
||||
#endif
|
||||
tor_assert(0==pthread_attr_setdetachstate(&attr_detached,
|
||||
PTHREAD_CREATE_DETACHED));
|
||||
threads_initialized = 1;
|
||||
set_main_thread();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user