From 48b40d8ba74ad0b9e025cf277fc40a9595d79b22 Mon Sep 17 00:00:00 2001 From: Mark Johannes Date: Tue, 13 Aug 1996 19:53:51 +0000 Subject: _POSIX_Condition_variables_Wait_support: changed status of lock and unlock to return EINVAL is there is an error --- cpukit/posix/src/cond.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/posix/src/cond.c') diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c index 3f53e53ead..878325acc9 100644 --- a/cpukit/posix/src/cond.c +++ b/cpukit/posix/src/cond.c @@ -388,7 +388,7 @@ int _POSIX_Condition_variables_Wait_support( status = pthread_mutex_unlock( mutex ); if ( status ) { _Thread_Enable_dispatch(); - return status; + return EINVAL; } _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); @@ -410,7 +410,7 @@ int _POSIX_Condition_variables_Wait_support( status = pthread_mutex_lock( mutex ); if ( status ) - return status; + return EINVAL; return _Thread_Executing->Wait.return_code; } -- cgit v1.2.3