This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/22337] pthread_join incorrectly fails for a detached running thread


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]