summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorMark Johannes <Mark.Johannes@OARcorp.com>1996-08-13 19:53:51 +0000
committerMark Johannes <Mark.Johannes@OARcorp.com>1996-08-13 19:53:51 +0000
commit48b40d8ba74ad0b9e025cf277fc40a9595d79b22 (patch)
tree1d85e7e62ef19fab17d550cebf5dc049a0ff2833 /cpukit
parenttask_2: added comments and print statement for task exit (diff)
downloadrtems-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 'cpukit')
-rw-r--r--cpukit/posix/src/cond.c4
1 files changed, 2 insertions, 2 deletions
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;
}