casaroli commented on code in PR #20130:
URL: https://github.com/apache/nuttx/pull/20130#discussion_r4064933261
##########
sched/signal/sig_notification.c:
##########
@@ -155,7 +168,11 @@ int nxsig_notification(pid_t pid, FAR struct sigevent
*event,
/* Initialize the work information */
work->value = event->sigev_value;
+#ifdef CONFIG_FDPIC
+ work->func.entry = (uintptr_t)event->sigev_notify_function;
Review Comment:
`nxsig_notification()` does not run in the registering context. It is
entered from a driver, `timer_settime()` or `mq_sndinternal()`, where
`fdpic_base()` is zero, so `fdpic_desc_init()` would take its else path and
clear the got that `mq_notify()` or timer_create() recorded. This line fills
entry only, on purpose.
--
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]