Skip to content

Commit 982b8d2

Browse files
committed
Revert non-functional pthread_detach() change
1 parent 724b8be commit 982b8d2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
static int __pthread_detach(pthread_t t)
55
{
66
#ifdef __EMSCRIPTEN__
7-
// XXX Emscripten: Add check for invalid (already joined) thread. Again
7+
// XXX EMSCRIPTEN: Add check for invalid (already joined) thread. Again
88
// for the benefit of the conformance tests.
9-
if (!_emscripten_thread_is_valid(t)) return ESRCH;
9+
if (!_emscripten_thread_is_valid(t))
10+
return ESRCH;
1011
#endif
1112
/* If the cas fails, detach state is either already-detached
1213
* or exiting/exited, and pthread_join will trap or cleanup. */

0 commit comments

Comments
 (0)