提交 59666802 编写于 作者: R Rich Felker

make pthread_create return EAGAIN on resource failure, as required by POSIX

上级 1355fdca
......@@ -212,7 +212,7 @@ int pthread_create(pthread_t *res, const pthread_attr_t *attr, void *(*entry)(vo
if (ret < 0) {
a_dec(&libc.threads_minus_1);
munmap(map, size);
return -ret;
return EAGAIN;
}
*res = new;
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册