We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abdcdcf commit 1e1761bCopy full SHA for 1e1761b
system/lib/libc/musl/src/thread/pthread_detach.c
@@ -4,8 +4,8 @@
4
static int __pthread_detach(pthread_t t)
5
{
6
#ifdef __EMSCRIPTEN__
7
- // Attempt to detach a thread which does not point to a valid thread, or
8
- // does not exist anymore.
+ // XXX EMSCRIPTEN: Add check for invalid or non-existent threads. Again
+ // for the benefit of the conformance tests.
9
if (t->self != t) return ESRCH;
10
#endif
11
/* If the cas fails, detach state is either already-detached
0 commit comments