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


##########
libs/libc/signal/sig_raise.c:
##########
@@ -45,5 +45,5 @@
 
 int raise(int signo)
 {
-  return tkill(_SCHED_GETTID(), signo);
+  return tgkill(_SCHED_GETPID(), _SCHED_GETTID(), signo);

Review Comment:
   yes, but it isn't harmful to add a local variable here to avoid call 
_SCHED_GETPID twice.



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