Parcourir la source

fix pshared barrier wrong return value.

i set the return value but then never used it... oops!
Rich Felker il y a 13 ans
Parent
commit
d8dc1df1c2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/thread/pthread_barrier_wait.c

+ 1 - 1
src/thread/pthread_barrier_wait.c

@@ -54,7 +54,7 @@ static int pshared_barrier_wait(pthread_barrier_t *b)
 	
 	__vm_unlock();
 
-	return 0;
+	return ret;
 }
 
 struct instance