提交 236256fe 编写于 作者: O openharmony_ci 提交者: Gitee

!13 【bug】sigaction中sigsuspend的后执行信号顺序与预期不符,信号注册时未屏蔽用户传入信号屏蔽字段

Merge pull request !13 from give-me-five/OpenHarmony_1.0.1_release
......@@ -267,7 +267,7 @@ static int __sig_action_opr(int sig, const sigaction_t *act, sigaction_t *oact)
sigact->act.sa_mask = act->sa_mask;
sigact->act.sa_flags = act->sa_flags;
}
sigprocmask(SIG_SETMASK, &act->sa_mask, NULL);
sigprocmask(SIG_BLOCK, &act->sa_mask, NULL);
pthread_spin_unlock(&sig_lite_lock);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册