From 4ea33fa9f934f856f15ef45eda9633c525d792be Mon Sep 17 00:00:00 2001 From: laokz Date: Sat, 5 Dec 2020 17:38:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3OsSigTimedWaitNoLock=E5=8F=AA?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E4=B8=80=E4=B8=AApending=E4=BF=A1=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/base/ipc/los_signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/base/ipc/los_signal.c b/kernel/base/ipc/los_signal.c index c5057968..9b7cc767 100644 --- a/kernel/base/ipc/los_signal.c +++ b/kernel/base/ipc/los_signal.c @@ -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);