This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/22337] pthread_join incorrectly fails for a detached running thread
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 23 Oct 2017 10:38:30 +0000
- Subject: [Bug nptl/22337] pthread_join incorrectly fails for a detached running thread
- Auto-submitted: auto-generated
- References: <bug-22337-131@http.sourceware.org/bugzilla/>
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.