fix race condition in dlopen
authorRich Felker <dalias@aerifal.cx>
Fri, 5 Oct 2012 05:15:25 +0000 (01:15 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 5 Oct 2012 05:15:25 +0000 (01:15 -0400)
commit642b7593c3b3488d229488a436bab294dcc27ee9
tree485eb850b836f921c3a4582e2aff8ddf0b01881f
parent99a2af6f45b356324e99acf0da809ca416eed0de
fix race condition in dlopen

orig_tail was being saved before the lock was obtained, allowing
dlopen failure to roll-back other dlopens that had succeeded.
src/ldso/dynlink.c