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

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu May 26 04:28:40 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1731

--- Comment #5 from Chris Johns <chrisj at rtems.org> 2011-05-25 23:28:39 CDT ---
(In reply to comment #4)
> 
> Seems a little conflicting to me... But based on the second statement, perhaps
> the current implementation is correct.

I suppose it depends on the definition of the lifetime of the thread. 

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).

I think we need to understand better what is expected and how we are suppose to
handle this.

-- 
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