summaryrefslogtreecommitdiff
path: root/src/threads/thrd_join.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-08-20 13:14:01 -0400
committerJakob Kaivo <jkk@ung.org>2019-08-20 13:14:01 -0400
commit275c64a746a43fa1f8ee0b7b3a8ab37abab0d326 (patch)
tree8d4cb708cae93148864605e85c832f7fee98e952 /src/threads/thrd_join.c
parente8e4e90e3667efb174fbf2548c22cc6caaebfcf1 (diff)
return correct values
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;
}