Don't allow signals to wake up blocked task if the signal is blocked.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@171 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
54339607da
commit
b765d17818
@ -289,8 +289,8 @@ int sig_received(FAR _TCB *stcb, siginfo_t *info)
|
||||
irqstate_t saved_state;
|
||||
int ret = ERROR;
|
||||
|
||||
dbg("sig_received: TCB=0x%08x signo=%d code=%d value=%d\n",
|
||||
stcb, info->si_signo, info->si_code, info->si_value.sival_int);
|
||||
dbg("sig_received: TCB=0x%08x signo=%d code=%d value=%d mask=%08x\n",
|
||||
stcb, info->si_signo, info->si_code, info->si_value.sival_int, stcb->sigprocmask);
|
||||
|
||||
if (stcb && info)
|
||||
{
|
||||
@ -363,8 +363,8 @@ int sig_received(FAR _TCB *stcb, siginfo_t *info)
|
||||
|
||||
/* If the task neither was waiting for the signal nor had a signal
|
||||
* handler attached to the signal, then the default action is
|
||||
* simply to ignore the signal */
|
||||
}
|
||||
* simply to ignore the signal
|
||||
*/
|
||||
|
||||
/****** OTHER SIGNAL HANDLING ******/
|
||||
|
||||
@ -389,6 +389,7 @@ int sig_received(FAR _TCB *stcb, siginfo_t *info)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user