pthread_join() returns an error code, it does not set errno.

This commit is contained in:
Steve Checkoway
2005-12-17 13:17:35 +00:00
parent 0338fb01ef
commit 833d06d1f3
@@ -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;