You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "casaroli (via GitHub)" <gi...@apache.org> on 2026/10/18 11:49:53 UTC

Re: [PR] sched/signal: Add an option to discard ignored signals. [nuttx]

casaroli commented on code in PR #20766:
URL: https://github.com/apache/nuttx/pull/20766#discussion_r4306900706


##########
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:
   Done.



##########
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:
   Done.



##########
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:
   Done.



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org