drop use of pthread_once in newlocale
authorRich Felker <dalias@aerifal.cx>
Wed, 9 Dec 2020 22:01:57 +0000 (17:01 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 9 Dec 2020 22:01:57 +0000 (17:01 -0500)
commit36246b347cd135399bc79f9b6617d9a120c00a0d
tree3fcae115948830637a424fd1a0592135d813da7b
parent37fcc13c12ade19c37a1a8ac80be4a14e21cff1e
drop use of pthread_once in newlocale

in general, pthread_once is not compatible with MT-fork constraints
(commit 167390f05564e0a4d3fcb4329377fd7743267560). here it actually no
longer matters, because it's now called with a lock held, but since
the lock is held it's pointless to use pthread_once.
src/locale/newlocale.c