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: [PATCH roland/getpid] Simplify getpid handling of the race case.


On Fri, May 09, 2014 at 03:23:24PM -0700, Roland McGrath wrote:
> In looking at consolidating the NPTL vs not versions of vfork, I came
> across the single, bizarre difference between the libpthread and libc
> versions of vfork.  This is implemented by a few lines of assembly for each
> machine, and nowhere is there a comment that explains the rationale.  
> 
> The code in question is fiddling with the pid field of 'struct pthread'.

I think there are several open race-condition bugs that amount to the
pid caching glibc does being invalid in certain corner cases. Would
you review them as part of looking at this issue?

Rich


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