mirror of git://sourceware.org/git/glibc.git
hurd: _Fork: unlock malloc before calling fork child hooks
The setitimer fork hook, fork_itimer, needs to call malloc inside __mach_setup_tls, so we need to unlock malloc before calling it.
This commit is contained in:
parent
ddcc612ce9
commit
de2f68c3c7
|
@ -660,6 +660,7 @@ retry:
|
|||
|
||||
/* Release malloc locks. */
|
||||
_hurd_malloc_fork_child ();
|
||||
call_function_static_weak (__malloc_fork_unlock_child);
|
||||
|
||||
/* Run things that want to run in the child task to set up. */
|
||||
RUN_HOOK (_hurd_fork_child_hook, ());
|
||||
|
|
Loading…
Reference in New Issue