summaryrefslogtreecommitdiff
path: root/src/threads/thrd_join.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/threads/thrd_join.c')
-rw-r--r--src/threads/thrd_join.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threads/thrd_join.c b/src/threads/thrd_join.c
index f85d7a71..a44e4021 100644
--- a/src/threads/thrd_join.c
+++ b/src/threads/thrd_join.c
@@ -3,5 +3,5 @@
int thrd_join(thrd_t thr, int *res)
{
- return pthread_join(thr, (void**)&res);
+ return pthread_join(thr, (void**)&res) == 0 ? thrd_success : thrd_error;
}