fix unsynchronized decrement of thread count on pthread_create error
commitdd0a23dd9e157624347fdcc9dca452675b93da70
authorRich Felker <dalias@aerifal.cx>
Fri, 6 Sep 2019 19:52:00 +0000 (6 15:52 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 6 Sep 2019 19:54:32 +0000 (6 15:54 -0400)
treeca3d079010992786a564f9d11904722682f97dba
parenta882841baf42e6a8b74cc33a239b84a9a79493db
fix unsynchronized decrement of thread count on pthread_create error

commit 8f11e6127fe93093f81a52b15bb1537edc3fc8af wrongly documented
that all changes to libc.threads_minus_1 were guarded by the thread
list lock, but the decrement for failed SYS_clone took place after the
thread list lock was released.
src/thread/pthread_create.c