Skip to content

Commit 1e1761b

Browse files
committed
Revert comment change
Except for the `(already joined)` sentence, because that's not what the check does.
1 parent abdcdcf commit 1e1761b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/lib/libc/musl/src/thread/pthread_detach.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
static int __pthread_detach(pthread_t t)
55
{
66
#ifdef __EMSCRIPTEN__
7-
// Attempt to detach a thread which does not point to a valid thread, or
8-
// does not exist anymore.
7+
// XXX EMSCRIPTEN: Add check for invalid or non-existent threads. Again
8+
// for the benefit of the conformance tests.
99
if (t->self != t) return ESRCH;
1010
#endif
1111
/* If the cas fails, detach state is either already-detached

0 commit comments

Comments
 (0)