modified to test pthread_kill() to self and pthread_kill() to a blocked

thread.  nanosleep() can be interrupted and return the time remaining.
This commit is contained in:
Joel Sherrill
1996-06-11 16:04:25 +00:00
parent 12aeff91fe
commit fb39f191da
4 changed files with 48 additions and 16 deletions

View File

@@ -31,12 +31,12 @@ void *Task_1_through_3(
int status;
for ( i=0 ; i<5 ; i++ ) {
seconds = sleep( 1 );
assert( !seconds );
print_current_time( "Task1: ", "" );
status = pthread_kill( Init_id, SIGUSR1 );
assert( !status );
seconds = sleep( 1 );
assert( !seconds );
}
puts( "*** END OF POSIX TEST 2 ***" );
exit( 0 );