yamt commented on a change in pull request #3517:
URL: https://github.com/apache/incubator-nuttx/pull/3517#discussion_r647210124
##########
File path: sched/sched/sched_get_stackinfo.c
##########
@@ -69,6 +69,16 @@ int nxsched_get_stackinfo(pid_t pid, FAR struct stackinfo_s
*stackinfo)
qtcb = rtcb;
}
+ else if (pid == -1)
+ {
+ /* We can always query our main thread */
Review comment:
it seems that it isn't always the case.
https://github.com/apache/incubator-nuttx/issues/3868
@xiaoxiang781216 can you take a look?
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]