nxsig_tcbdispatch: unblock task in case of CONFIG_LIB_SYSCALL

Otherwise, long-sleeping system calls using nxsig_timedwait
are not actually interrupted.

Tested with "ntpcstop" using lm3s6965-ek:qemu-protected config.
This commit is contained in:
YAMAMOTO Takashi 2021-02-15 15:29:01 +09:00 committed by Xiang Xiao
parent e598d81543
commit c3e27568de

View File

@ -345,7 +345,8 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t *info)
flags = enter_critical_section();
if (stcb->task_state == TSTATE_WAIT_SIG &&
nxsig_ismember(&stcb->sigwaitmask, info->si_signo))
(masked == 0 ||
nxsig_ismember(&stcb->sigwaitmask, info->si_signo)))
{
memcpy(&stcb->sigunbinfo, info, sizeof(siginfo_t));
stcb->sigwaitmask = NULL_SIGNAL_SET;