Skip to content
Commit 52f00882 authored by Christopher Friedt's avatar Christopher Friedt Committed by Chris Friedt
Browse files

posix: pthread: report appropriate return value instead of 0



Discovered this while implementing c11 threads, but there
was a regression recently that made it so that `pthread_join()`
would report success when attempting to join a thread that had
been detached with `pthread_detach()`.

Technically now that is undefined behaviour, but historically,
we have reported `EINVAL`, which was the older specified
return value.

Signed-off-by: default avatarChristopher Friedt <cfriedt@meta.com>
parent 5b4d275a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment