diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-08-20 13:14:01 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-08-20 13:14:01 -0400 |
commit | 275c64a746a43fa1f8ee0b7b3a8ab37abab0d326 (patch) | |
tree | 8d4cb708cae93148864605e85c832f7fee98e952 /src/threads/thrd_join.c | |
parent | e8e4e90e3667efb174fbf2548c22cc6caaebfcf1 (diff) |
return correct values
Diffstat (limited to 'src/threads/thrd_join.c')
-rw-r--r-- | src/threads/thrd_join.c | 2 |
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; } |