This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Concurrency semantics of fork


* 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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]