diff options
author | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-13 19:53:51 +0000 |
---|---|---|
committer | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-13 19:53:51 +0000 |
commit | 48b40d8ba74ad0b9e025cf277fc40a9595d79b22 (patch) | |
tree | 1d85e7e62ef19fab17d550cebf5dc049a0ff2833 /c/src/exec/posix/src | |
parent | task_2: added comments and print statement for task exit (diff) | |
download | rtems-48b40d8ba74ad0b9e025cf277fc40a9595d79b22.tar.bz2 |
_POSIX_Condition_variables_Wait_support: changed status of lock and unlock to return EINVAL is there is an error
Diffstat (limited to 'c/src/exec/posix/src')
-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; } |