use libc-internal malloc for pthread_atfork
authorRich Felker <dalias@aerifal.cx>
Sat, 17 Dec 2022 21:00:19 +0000 (16:00 -0500)
committerRich Felker <dalias@aerifal.cx>
Sat, 17 Dec 2022 21:00:19 +0000 (16:00 -0500)
commit9532ae1318201d66b235a618df16aac0b3386630
treedea07b4ce3c15d9e0280a3d96726cd0af77c8d08
parent7d358599d4c8f793cfb42ee49ff5e1d107de6ee4
use libc-internal malloc for pthread_atfork

while no lock is held here making it a lock-order issue, replacement
malloc is likely to want to use pthread_atfork, possibly making the
call to malloc infinitely recursive.

even if not, there is no reason to prefer an application-provided
malloc here.
src/thread/pthread_atfork.c