!39 修正OsSigTimedWaitNoLock只清除一个pending信号

Merge pull request !39 from laokz/signal
This commit is contained in:
openharmony_ci 2020-12-09 14:08:36 +08:00 committed by Gitee
commit c69eee403e
1 changed files with 1 additions and 1 deletions

View File

@ -459,8 +459,8 @@ int OsSigTimedWaitNoLock(sigset_t *set, siginfo_t *info, unsigned int timeout)
/* If pendingflag & set > 0, shound clear pending flag */
sigset_t clear = sigcb->sigPendFlag & *set;
if (clear) {
sigcb->sigPendFlag ^= clear;
ret = FindFirstSetedBit((UINT64)clear) + 1;
sigcb->sigPendFlag ^= SIGNO2SET(ret);
} else {
OsSigAddSet(set, SIGKILL);
OsSigAddSet(set, SIGSTOP);