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: Consensus: Tuning runtime behaviour with environment variables.


On Thu, May 30, 2013 at 12:40:22PM +0530, Siddhesh Poyarekar wrote:
> Speaking of which, it doesn't look like the environment variable write
> lock is reset at fork.  There may be a chance at a deadlock if the
> process forked in the middle of a setenv and the child tried to
> setenv.  But I digress...

After fork from a multithreaded process, you're in an async signal
context, i.e. you can only legally call async-signal-safe functions.

Rich


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