[Bug 1731] New: pthread_join() returns ESRCH if target thread already terminated
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Fri Jan 21 22:54:32 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1731
Summary: pthread_join() returns ESRCH if target thread already
terminated
Product: RTEMS
Version: 4.9
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: normal
Priority: P3
Component: cpukit
AssignedTo: joel.sherrill at oarcorp.com
ReportedBy: gtaylor at jpl.nasa.gov
Calling pthread_join() on a target thread that has already terminated returns
ESRCH.
The error is occurring under the following condition:
Two threads are created. Both threads terminate on the same condition. That
terminating condition is set in the calling thread, then pthread_join() is
called on each target thread. The first call succeeds, and the second call to
pthread_join() always fails, no matter the order in which the threads were
specified.
According to the pthread_join() documentation, "if thread has already
terminated, then this routine returns immediately." I read that as it should
return success immediately.
I found this from 2001, but it looks like it was never followed up:
http://www.rtems.com/ml/rtems-users/2001/august/msg00169.html
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list