fix major breakage in pthread_once (it was always deadlocking)
authorRich Felker <dalias@aerifal.cx>
Tue, 8 Mar 2011 17:08:40 +0000 (12:08 -0500)
committerRich Felker <dalias@aerifal.cx>
Tue, 8 Mar 2011 17:08:40 +0000 (12:08 -0500)
commit7e6be42a77989c01155bdc7333ea58206e1563d4
treeb482baa82bff05cfa68ce7031328465405a74662
parent4820f9268d3dc1f2aac923de0a591ffd5d54ea89
fix major breakage in pthread_once (it was always deadlocking)

the issue was a break statement that was breaking only from the
switch, not the enclosing for loop, and a failure to set the final
success state.
src/thread/pthread_once.c