ldso: use pthread_t rather than kernel tid to track ctor visitor
authorRich Felker <dalias@aerifal.cx>
Tue, 29 Sep 2020 23:16:19 +0000 (19:16 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 15 Oct 2020 00:27:12 +0000 (20:27 -0400)
commit50716702d41d5f6f31c1075a1734b9f759477f0d
tree8757c11f267a0ccd9633ccf5fd70fb8c6e36705d
parent1efc8eb2c7eda7664232ef0292b7283adf0db114
ldso: use pthread_t rather than kernel tid to track ctor visitor

commit 188759bbee057aa94db2bbb7cf7f5855f3b9ab53 documented the intent
to allow recursive dlopen based on tracking ctor_visitor, but used a
kernel tid rather than the pthread_t to identify the caller. as a
result, it would not behave as intended under fork by a ctor, where
the child tid would not match.
ldso/dynlink.c