Not re-enable background thread after fork.

Avoid calling pthread_create in postfork handlers.
This commit is contained in:
Qi Wang
2017-06-09 00:00:48 -07:00
committed by Qi Wang
parent 464cb60490
commit b83b5ad44a
3 changed files with 49 additions and 36 deletions

View File

@@ -340,7 +340,6 @@ arena_new_create_background_thread(tsdn_t *tsdn, unsigned ind) {
if (ind == 0) {
return;
}
/* background_thread_create() handles reentrancy internally. */
if (have_background_thread) {
bool err;
malloc_mutex_lock(tsdn, &background_thread_lock);