xiaoxiang781216 commented on code in PR #20766:
URL: https://github.com/apache/nuttx/pull/20766#discussion_r4305668909
##########
sched/signal/sig_dispatch.c:
##########
@@ -697,7 +709,10 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t
*info,
if (stcb->task_state == TSTATE_WAIT_SEM)
{
- nxsem_wait_irq(stcb, EINTR);
+ if (!ignored)
Review Comment:
merge into line 710
##########
sched/signal/sig_dispatch.c:
##########
@@ -498,6 +498,7 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t
*info,
int masked;
int ret = OK;
FAR sigpendq_t *sigpend = NULL;
+ bool ignored = false;
Review Comment:
move after line 504
##########
sched/signal/sig_dispatch.c:
##########
@@ -708,7 +723,10 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t
*info,
else if (stcb->task_state == TSTATE_WAIT_MQNOTEMPTY ||
stcb->task_state == TSTATE_WAIT_MQNOTFULL)
{
- nxmq_wait_irq(stcb, EINTR);
+ if (!ignored)
Review Comment:
merge into line 708
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]