提交 2afed79f 编写于 作者: R Rich Felker

pthread_exit is not supposed to affect cancellability

if the exit was caused by cancellation, __cancel has already set these
flags anyway.
上级 1ebde9c3
......@@ -130,7 +130,5 @@ void pthread_exit(void *result)
struct pthread *self = pthread_self();
struct __ptcb cb = { .__next = self->cancelbuf };
self->result = result;
self->canceldisable = 1;
self->cancelasync = 0;
__pthread_unwind_next(&cb);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册