Changeset e7de563a in rtems


Ignore:
Timestamp:
Sep 14, 2009, 12:14:22 AM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
1e2d7510
Parents:
32aaaff
Message:

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

  • posix/src/nanosleep.c: Disable EINTR case when POSIX is disabled because it cannot happen.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r32aaaff re7de563a  
     12009-09-13      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * posix/src/nanosleep.c: Disable EINTR case when POSIX is disabled
     4        because it cannot happen.
     5
    162009-09-13      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • cpukit/posix/src/nanosleep.c

    r32aaaff re7de563a  
    9494
    9595    /*
    96      *  If there is time remaining, then we were interrupted by a signal.
     96     *  Only when POSIX is enabled, can a sleep be interrupted.
    9797     */
    98 
    99     if ( ticks )
    100       rtems_set_errno_and_return_minus_one( EINTR );
     98    #if defined(RTEMS_POSIX_API)
     99        /*
     100         *  If there is time remaining, then we were interrupted by a signal.
     101         */
     102        if ( ticks )
     103          rtems_set_errno_and_return_minus_one( EINTR );
     104    #endif
    101105  }
    102106
Note: See TracChangeset for help on using the changeset viewer.