mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
Don't actually send a signal with signo 0
As stated by standards.
This commit is contained in:
committed by
patacongo
parent
655fcf18d0
commit
674417bb33
@@ -310,6 +310,13 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t *info)
|
||||
|
||||
DEBUGASSERT(stcb != NULL && info != NULL);
|
||||
|
||||
/* Don't actually send a signal for signo 0. */
|
||||
|
||||
if (info->si_signo == 0)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
|
||||
/************************** MASKED SIGNAL ACTIONS *************************/
|
||||
|
||||
masked = (bool)sigismember(&stcb->sigprocmask, info->si_signo);
|
||||
|
||||
Reference in New Issue
Block a user