no longer need glibc pthread_atfork workaround

This commit is contained in:
Daniel Micay 2020-03-29 07:39:23 -04:00
parent 3af44d2e6a
commit 0436227092
2 changed files with 1 additions and 14 deletions

View file

@ -1156,7 +1156,7 @@ COLD static void init_slow_path(void) {
mutex_unlock(&lock);
// may allocate, so wait until the allocator is initialized to avoid deadlocking
if (atfork(full_lock, full_unlock, post_fork_child)) {
if (pthread_atfork(full_lock, full_unlock, post_fork_child)) {
fatal_error("pthread_atfork failed");
}
}