This is the mail archive of the libc-alpha@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: RFC: mutexes acquired before fork() remain to be acquired by the parent process after fork()


>
> Maybe we can support lock reinitialization in the child?  I think this
> should cover the majority of pthread_atfork use cases.  It would work nicely
> if we start the child process with an empty robust mutex list, too.

I have a dim memory of a mmap flag in one of the BSDs that causes
pages to get zeroed in the child on fork(). I can't find it now, but
if we could get Linux to add that, it would help with this as well as
several other problems, I think.

zw


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