apache / nuttx-apps

Apache NuttX Apps is a collection of tools, shells, network utilities, libraries, interpreters and can be used with the NuttX RTOS
https://nuttx.apache.org/
Apache License 2.0
275 stars 521 forks source link

getpid() broken - or changed? #2433

Closed TimJTi closed 3 months ago

TimJTi commented 3 months ago

My app uses getpid() to determine where to send a signal to - a thread interested in data changes from another thread "registers interest" and getpid() is used to obtain and save the pid for use when a change occurs.

NuttX 12.5 behaves as expected and returns the pid of the calling thread , but from 12.6 onwards it returns 0 every time.

Before I bisect, or look to my own code for an obscure bug, is there a change that's been made meaning we need to perhaps do something else first to get it to work, or there's been a fix/change I should know about?

TimJTi commented 3 months ago

should have been on nuttx not nuttx-apps