提交 823813e3 编写于 作者: R Rich Felker

fix crash in pthread_testcancel if pthread_self has not been called

上级 bc244533
......@@ -61,7 +61,7 @@ static void cancel_handler(int sig, siginfo_t *si, void *ctx)
void __testcancel()
{
pthread_t self = __pthread_self();
pthread_t self = pthread_self();
if (self->cancel && !self->canceldisable)
__cancel();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册