Changeset 85f5b4ab in rtems


Ignore:
Timestamp:
08/13/96 14:47:31 (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
0d59c7a
Parents:
f48c9068
Message:

nanosleep now returns -1 and EINTR when a signal interrupts EINTR.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psx02/init.c

    rf48c9068 r85f5b4ab  
    121121
    122122    status = nanosleep ( &tv, &tr );
    123     assert( !status );
    124 
     123 
     124    if ( status == -1 ) {
     125      assert( errno == EINTR );
     126      assert( tr.tv_nsec || tr.tv_sec );
     127    } else if ( !status ) {
     128      assert( !tr.tv_nsec && !tr.tv_sec );
     129    }
     130     
    125131    printf(
    126132      "Init: signal was %sprocessed with %d:%d time remaining\n",
  • testsuites/psxtests/psx02/init.c

    rf48c9068 r85f5b4ab  
    121121
    122122    status = nanosleep ( &tv, &tr );
    123     assert( !status );
    124 
     123 
     124    if ( status == -1 ) {
     125      assert( errno == EINTR );
     126      assert( tr.tv_nsec || tr.tv_sec );
     127    } else if ( !status ) {
     128      assert( !tr.tv_nsec && !tr.tv_sec );
     129    }
     130     
    125131    printf(
    126132      "Init: signal was %sprocessed with %d:%d time remaining\n",
Note: See TracChangeset for help on using the changeset viewer.