[Bug 1731] pthread_join() returns ESRCH if target thread already terminated

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu May 26 06:12:31 UTC 2011


--- Comment #6 from Gregory Taylor <gtaylor at jpl.nasa.gov> 2011-05-26 01:12:30 CDT ---
(In reply to comment #5)
> A check of the FreeBSD code (thr_join.c) shows it searches for dead threads in
> the join call and the search passes without error (thr_list.c). I cannot see
> where the thread is removed from the thread hash table and so what defines the
> lifetime of a thread. The join call does clean up via the exit path
> (thr_exit.c).

That is my experience programming under Linux and Solaris as well
(pthread_join() succeeds on an already terminated thread), though I haven't
looked at the source.

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