fix usage of locks with vfork
authorRich Felker <dalias@aerifal.cx>
Fri, 19 Oct 2012 19:02:37 +0000 (15:02 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 19 Oct 2012 19:02:37 +0000 (15:02 -0400)
__release_ptc() is only valid in the parent; if it's performed in the
child, the lock will be unlocked early then double-unlocked later,
corrupting the lock state.


No differences found