From 833d06d1f376389de808b2da0af771448038ce1c Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 17 Dec 2005 13:17:35 +0000 Subject: [PATCH] pthread_join() returns an error code, it does not set errno. --- stepmania/src/arch/Threads/Threads_Pthreads.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/arch/Threads/Threads_Pthreads.cpp b/stepmania/src/arch/Threads/Threads_Pthreads.cpp index c0833b9b60..dec054038c 100644 --- a/stepmania/src/arch/Threads/Threads_Pthreads.cpp +++ b/stepmania/src/arch/Threads/Threads_Pthreads.cpp @@ -43,7 +43,7 @@ int ThreadImpl_Pthreads::Wait() int *val; int ret = pthread_join( thread, (void **) &val ); if( ret ) - RageException::Throw( "pthread_join: %s", strerror(errno) ); + RageException::Throw( "pthread_join: %s", strerror(ret) ); int iRet = *val; delete val;