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)
commit599f97360389911c293e0ca4c5eb49e007377fba
tree9df3f1e50357956c4cc76cd8e2872f342c80bf3c
parentebee8c2b477807fe58fd35d35783633ea08b049c
fix usage of locks with vfork

__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.
src/process/posix_spawn.c
src/process/system.c
src/stdio/popen.c