casaroli commented on code in PR #21674:
URL: https://github.com/apache/nuttx/pull/21674#discussion_r4537874817
##########
sched/signal/sig_queue.c:
##########
@@ -38,6 +38,54 @@
#include "sched/sched.h"
#include "signal/signal.h"
+/****************************************************************************
+ * Private Functions
+ ****************************************************************************/
+
+/****************************************************************************
+ * Name: nxsig_queue_send
+ *
+ * Description:
+ * Send the signal of nxsig_queue() and sigqueue(). If limit is true, fail
+ * with -EAGAIN if SIGQUEUE_MAX signals are queued at the receiver.
+ *
+ ****************************************************************************/
+
+static int nxsig_queue_send(int pid, int signo, union sigval value,
+ bool limit)
+{
+#ifdef CONFIG_SCHED_HAVE_PARENT
+ FAR struct tcb_s *rtcb = this_task();
+#endif
+ siginfo_t info;
+
+ sinfo("pid=0x%08x signo=%d value=%d\n", pid, signo, value.sival_int);
+
+ /* Sanity checks */
+
+ if (!GOOD_SIGNO(signo))
+ {
+ return -EINVAL;
+ }
+
+ /* Create the siginfo structure */
+
+ info.si_signo = signo;
+ info.si_code = SI_QUEUE;
+ info.si_errno = OK;
+ info.si_value = value;
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]