From e7de563acf2b05afcce38c9d2354c0a76237de0d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 14 Sep 2009 00:14:22 +0000 Subject: 2009-09-13 Joel Sherrill * posix/src/nanosleep.c: Disable EINTR case when POSIX is disabled because it cannot happen. --- cpukit/ChangeLog | 5 +++++ cpukit/posix/src/nanosleep.c | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index fcdd522da4..ee8574a1ee 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2009-09-13 Joel Sherrill + + * posix/src/nanosleep.c: Disable EINTR case when POSIX is disabled + because it cannot happen. + 2009-09-13 Joel Sherrill * score/inline/rtems/score/coremsg.inl: Fix compilation issue when diff --git a/cpukit/posix/src/nanosleep.c b/cpukit/posix/src/nanosleep.c index cd66175df7..e83f1c8277 100644 --- a/cpukit/posix/src/nanosleep.c +++ b/cpukit/posix/src/nanosleep.c @@ -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; -- cgit v1.2.3