Changeset dfa2cdb in rtems


Ignore:
Timestamp:
Jul 27, 2016, 7:09:01 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
0b836337
Parents:
39d97ab
git-author:
Sebastian Huber <sebastian.huber@…> (07/27/16 07:09:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/27/16 07:09:53)
Message:

posix: Fix error status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/nanosleep.c

    r39d97ab rdfa2cdb  
    137137   *         FSU and GNU/Linux pthreads shares this behavior.
    138138   */
    139   if ( !_Timespec_Is_valid( rqtp ) )
    140     return EINVAL;
     139  if ( !_Timespec_Is_valid( rqtp ) ) {
     140    rtems_set_errno_and_return_minus_one( EINVAL );
     141  }
    141142
    142143  relative_interval = _Timespec_To_ticks( rqtp );
Note: See TracChangeset for help on using the changeset viewer.