From 2f59893abc1ef66e851c4bba56c4b421710d4183 Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 19 Feb 1999 03:15:05 +0000 Subject: Fri Feb 19 16:2s1703:30 1999 Ross Johnson * sync.c (pthread_join): Fix pthread_equal() test. * mutex.c (pthread_mutex_trylock): Check mutex != NULL before using it. --- sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sync.c') diff --git a/sync.c b/sync.c index 4120838..aadd4f8 100644 --- a/sync.c +++ b/sync.c @@ -100,7 +100,7 @@ pthread_join (pthread_t thread, void **value_ptr) self = pthread_self (); - if (pthread_equal (self, thread) == 0) + if (pthread_equal (self, thread) != 0) { result = EDEADLK; } -- cgit v1.2.3