jlaitine commented on code in PR #17263:
URL: https://github.com/apache/nuttx/pull/17263#discussion_r2476749573


##########
sched/signal/sig_dispatch.c:
##########
@@ -487,6 +486,17 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t 
*info,
 
   flags = nxsig_alloc_dyn_pending(flags);
 
+  /* If there are no available items for pending signals, and this was a
+   * real-time signal called from interrupt or idle task, return with
+   * -EAGAIN.
+   */
+
+  if (sq_empty(&g_sigpendingsignal) || sq_empty(&g_sigpendingaction))

Review Comment:
   Sure. The change becomes bigger though, because we need to keep the critical 
section while checking the preallocated lists. I pushed another suggestion, 
does it look better to you?



-- 
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]

Reply via email to