[Bug nptl/22337] pthread_join incorrectly fails for a detached running thread
fweimer at redhat dot com
sourceware-bugzilla@sourceware.org
Mon Oct 23 10:38:00 GMT 2017
https://sourceware.org/bugzilla/show_bug.cgi?id=22337
--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
There is this sentence in 2.9.2:
“If a thread is detached, its thread ID is invalid for use as an argument in a
call to pthread_detach() or pthread_join().”
Is this what you mean?
But it is not clear to me that pthread_detach actually makes the thread
detached. The effect is specified as “The pthread_detach() function shall
indicate to the implementation that storage for the thread thread can be
reclaimed when that thread terminates.” Not that the thread will be detached
or not joinable afterwards.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list