Change-Id: Ia42e914b7a19b7d519010e371f808baa1c6588c0
This commit is contained in:
x_xiny 2021-04-02 18:27:31 +08:00
parent a0bb801f67
commit f30790c5c8
1 changed files with 0 additions and 4 deletions

View File

@ -510,7 +510,6 @@ int OsSigSuspend(const sigset_t *set)
{
unsigned int intSave;
LosTaskCB *rtcb = NULL;
unsigned int sigTempProcMask;
sigset_t setSuspend;
int ret;
@ -519,7 +518,6 @@ int OsSigSuspend(const sigset_t *set)
}
SCHEDULER_LOCK(intSave);
rtcb = OsCurrTaskGet();
sigTempProcMask = rtcb->sig.sigprocmask;
/* Wait signal calc */
setSuspend = FULL_SIGNAL_SET & (~(*set));
@ -530,8 +528,6 @@ int OsSigSuspend(const sigset_t *set)
if (ret < 0) {
PRINT_ERR("FUNC %s LINE = %d, ret = %x\n", __FUNCTION__, __LINE__, ret);
}
/* Restore old sigprocmask */
OsSigMaskSwitch(rtcb, sigTempProcMask);
SCHEDULER_UNLOCK(intSave);
return -EINTR;