提交 1276387c authored 作者: Mathieu Rene's avatar Mathieu Rene

fix segfault

上级 768e5490
......@@ -175,7 +175,7 @@ APR_DECLARE(apr_status_t) apr_thread_create(apr_thread_t **new,
if ((stat = pthread_create((*new)->td, temp, dummy_worker, (*new))) == 0) {
#ifndef __APPLE__
if (attr->priority) {
if (attr && attr->priority) {
pthread_t *thread = (*new)->td;
pthread_setschedprio(*thread, attr->priority);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论