提交 6b3d724f 编写于 作者: D Derek Parker

Return error if thread_resume fails on suspend_count > 0

上级 530f66dc
......@@ -99,7 +99,7 @@ resume_thread(thread_act_t thread) {
for (int i = 0; i < info.suspend_count; i++) {
kret = thread_resume(thread);
if (kret != KERN_SUCCESS) break;
if (kret != KERN_SUCCESS) return kret;
}
return KERN_SUCCESS;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册