xiaoxiang781216 commented on code in PR #17991:
URL: https://github.com/apache/nuttx/pull/17991#discussion_r2851471357


##########
sched/signal/sig_nanosleep.c:
##########
@@ -191,9 +191,17 @@ int clock_nanosleep(clockid_t clockid, int flags,
       return EINVAL;
     }
 
+#ifdef CONFIG_DISABLE_ALL_SIGNALS
+  /* Just a wrapper around nxsched_nanosleep() if
+   *  all signals are disabled.
+   */
+
+  ret = nxsched_nanosleep(rqtp, rmtp);

Review Comment:
   after more thinking, it's better to modify nxsig_clockwait to decouple with 
signal by moving nxsig_clockwait from sig_timedwait.c to sig_clockwait.



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