diff --git a/lib/BasicsC/threads-posix.c b/lib/BasicsC/threads-posix.c index 885bdaee5e..b08c9d4165 100644 --- a/lib/BasicsC/threads-posix.c +++ b/lib/BasicsC/threads-posix.c @@ -198,7 +198,7 @@ bool TRI_StartThread (TRI_thread_t* thread, //////////////////////////////////////////////////////////////////////////////// int TRI_StopThread (TRI_thread_t* thread) { - pthread_cancel(*thread); + return pthread_cancel(*thread); } //////////////////////////////////////////////////////////////////////////////// @@ -214,7 +214,7 @@ int TRI_DetachThread (TRI_thread_t* thread) { //////////////////////////////////////////////////////////////////////////////// int TRI_JoinThread (TRI_thread_t* thread) { - pthread_join(*thread, 0); + return pthread_join(*thread, 0); } ////////////////////////////////////////////////////////////////////////////////