2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>

* posix/src/nanosleep.c: Disable EINTR case when POSIX is disabled
	because it cannot happen.
This commit is contained in:
Joel Sherrill
2009-09-14 00:14:22 +00:00
parent 32aaaff486
commit e7de563acf
2 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/nanosleep.c: Disable EINTR case when POSIX is disabled
because it cannot happen.
2009-09-13 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/inline/rtems/score/coremsg.inl: Fix compilation issue when

View File

@@ -93,11 +93,15 @@ int nanosleep(
_Timespec_From_ticks( ticks, rmtp );
/*
* If there is time remaining, then we were interrupted by a signal.
* Only when POSIX is enabled, can a sleep be interrupted.
*/
if ( ticks )
rtems_set_errno_and_return_minus_one( EINTR );
#if defined(RTEMS_POSIX_API)
/*
* If there is time remaining, then we were interrupted by a signal.
*/
if ( ticks )
rtems_set_errno_and_return_minus_one( EINTR );
#endif
}
return 0;