diff options
Diffstat (limited to 'c')
-rw-r--r-- | c/src/exec/posix/src/cond.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/exec/posix/src/cond.c b/c/src/exec/posix/src/cond.c index 3f53e53ead..878325acc9 100644 --- a/c/src/exec/posix/src/cond.c +++ b/c/src/exec/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; } |