2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>

* posix/src/mutextimedlock.c: Check status local variable not
	lock_status.
This commit is contained in:
Joel Sherrill
2010-10-21 22:21:09 +00:00
parent 479cbaf81d
commit ed553f0bcf
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -1,3 +1,8 @@
2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/mutextimedlock.c: Check status local variable not
lock_status.
2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/ftpfs.c: Do not fall back to BOOTP server address
+3 -3
View File
@@ -72,10 +72,10 @@ int pthread_mutex_timedlock(
* make sure the right reason is returned.
*/
if ( !do_wait && (lock_status == EBUSY) ) {
if ( lock_status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
return EINVAL;
if ( lock_status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
lock_status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
return ETIMEDOUT;
}