fix "exit" in global constructor causes the program to hang
commit 188759bb 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. Test:libc-test/src/function/exit.c Issue:I7F2LR Signed-off-by: Nfangting <fangting12@huawei.com>
Showing
想要评论请 注册 或 登录