Re: [PATCH] openposix: Remove pthread_detach_1-2

Jan Stancek via ltp <[email protected]>
Newsgroups gmane.linux.ltp
Message-ID <CAASaF6yLzXOOzwZkDy+C2-Jn=-EN+LBHydPNWsmB+sxOO3vmgg@mail.gmail.com>
On Mon, Jun 15, 2026 at 4:25 PM Martin Doucha <[email protected]> wrote:
>
> The POSIX specification of pthread_join() has changed in recent years and
> pthread_detach_1-2 test scenario is no longer valid. The POSIX standard
> issue 8 says that the behavior of pthread_join() called on a thread ID
> which does not refer to a joinable thread is undefined.
>
> https://pubs.opengroup.org/onlinepubs/9799919799/functions/pthread_join.html
>
> The test creates a thread, detaches it using pthread_detach() and then
> calls pthread_join(), expecting an error. As stated above, the expected
> behavior is now undefined. Remove the test.
>
> Signed-off-by: Martin Doucha <[email protected]>

Acked-by: Jan Stancek <[email protected]>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.