Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions sched/signal/sig_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t *info)
int masked;
int ret = OK;

sinfo("TCB=%p signo=%d code=%d value=%d mask=%08" PRIx32 "\n",
stcb, info->si_signo, info->si_code,
sinfo("TCB=%p pid=%d signo=%d code=%d value=%d mask=%08" PRIx32 "\n",
stcb, stcb->pid, info->si_signo, info->si_code,
info->si_value.sival_int, stcb->sigprocmask);

DEBUGASSERT(stcb != NULL && info != NULL);
Expand Down Expand Up @@ -404,6 +404,15 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t *info)
}

leave_critical_section(flags);

#ifdef CONFIG_LIB_SYSCALL
/* Must also add signal action if in system call */

if (masked == 0)
{
nxsig_add_pendingsignal(stcb, info);
}
#endif
}

/* Its not one we are waiting for... Add it to the list of pending
Expand Down