Resolve "calling malloc in fork child is undefined-behaviour"
Fix various uses of async-signal-unsafe functions in async-signal-safe contexts. See the individual commit messages for details.
Closes #2140 (closed)
Fix various uses of async-signal-unsafe functions in async-signal-safe contexts. See the individual commit messages for details.
Closes #2140 (closed)