mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user