Concurrency semantics of fork

Florian Weimer fw@deneb.enyo.de
Mon Dec 28 19:37:00 GMT 2015


* Carlos O'Donell:

> On 12/22/2015 02:56 PM, Michael Kerrisk (man-pages) wrote:
>> I'm still not quite clear at this point: does glibc officially
>> guarantee malloc() and friends as "MT-fork-safe"?
>
> Unofficially yes. We have tons of code in malloc to handle this.

But only if fork is not called from a signal handler (in case this
isn't obvious).



More information about the Libc-help mailing list