You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/05/10 22:47:30 UTC

[GitHub] [incubator-nuttx-apps] hartmannathan opened a new issue #245: Illegal call to nxsched_foreach() in examples/thttpd

hartmannathan opened a new issue #245:
URL: https://github.com/apache/incubator-nuttx-apps/issues/245


   As noted by @gregory-nutt in commit # 3abdf30e8c62f1a82fc48a0763392ba6c8b0ee2d the logic in examples/thttpd/content/tasks/tasks.c is calling OS internal function nxsched_foreach() which violates the POSIX OS interface.
   
   This internal function is being called to generate a list of tasks for display in the webpage served by the web server example.
   
   Although this is an example program, or perhaps more so _because_ it is an example, we should not be teaching the wrong way to do things!


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] patacongo commented on issue #245: Illegal call to nxsched_foreach() in examples/thttpd

Posted by GitBox <gi...@apache.org>.
patacongo commented on issue #245:
URL: https://github.com/apache/incubator-nuttx-apps/issues/245#issuecomment-626402094


   > Although this is an example program, or perhaps more so _because_ it is an example, we should not be teaching the wrong way to do things!
   
   No disagreement.  This example is older than the right way to do things.  It dates back to the first years of the OS.  Now there the procfs which provides a standard way to get this information.
   
   So the fix would be clone the logic for NSH 'ps' command to replace the illegal calls.  That command gets the same kind of information using the procfs file system.
   
   This would be a great bug fix for someone getting started with NuttX and wants to build up some contributions needed to become a part of the project!


----------------------------------------------------------------
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:
users@infra.apache.org