Apache NuttX Apps is a collection of tools, shells, network utilities, libraries, interpreters and can be used with the NuttX RTOS
268
stars
504
forks
source link
testing/ostest/cancel: joining a detached/canceled thread should return EINVAL, not ESRCH #2329
Closed
anchao closed 5 months ago
Summary
testing/ostest/cancel: joining a detached/canceled thread should return EINVAL, not ESRCH
Reference: https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_join.html [EINVAL] The value specified by thread does not refer to a joinable thread.
https://docs.oracle.com/cd/E19120-01/open.solaris/816-5137/tlib-25/index.html
EINVAL The thread corresponding to the given thread ID is a detached thread.
https://linux.die.net/man/3/pthread_join
EINVAL thread is not a joinable thread.
Impact
Depends on: https://github.com/apache/nuttx/pull/11898
N/A
Testing
ostest