mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-24 08:51:14 -04:00
no longer need glibc pthread_atfork workaround
This commit is contained in:
parent
3af44d2e6a
commit
0436227092
2 changed files with 1 additions and 14 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue