summaryrefslogtreecommitdiff
path: root/src/threads/thrd_detach.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/threads/thrd_detach.c')
-rw-r--r--src/threads/thrd_detach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threads/thrd_detach.c b/src/threads/thrd_detach.c
index 73de91c5..2e178bc3 100644
--- a/src/threads/thrd_detach.c
+++ b/src/threads/thrd_detach.c
@@ -3,5 +3,5 @@
int thrd_detach(thrd_t thr)
{
- return pthread_detach(thr);
+ return pthread_detach(thr) == 0 ? thrd_success : thrd_error;
}