changed error for too many threads to EAGAIN

This commit is contained in:
Joel Sherrill
1996-08-15 18:59:00 +00:00
parent f3e191461c
commit fdf6917aaa
2 changed files with 4 additions and 4 deletions

View File

@@ -201,9 +201,9 @@ void *POSIX_Init(
/* too may threads error */ /* too may threads error */
puts( "Init: pthread_create - EINVAL (too many threads)" ); puts( "Init: pthread_create - EAGAIN (too many threads)" );
status = pthread_create( &thread_id, NULL, Task_1_through_3, NULL ); status = pthread_create( &thread_id, NULL, Task_1_through_3, NULL );
assert( status == EINVAL ); assert( status == EAGAIN );
puts( "Init: sched_yield to Task_1" ); puts( "Init: sched_yield to Task_1" );
status = sched_yield(); status = sched_yield();

View File

@@ -201,9 +201,9 @@ void *POSIX_Init(
/* too may threads error */ /* too may threads error */
puts( "Init: pthread_create - EINVAL (too many threads)" ); puts( "Init: pthread_create - EAGAIN (too many threads)" );
status = pthread_create( &thread_id, NULL, Task_1_through_3, NULL ); status = pthread_create( &thread_id, NULL, Task_1_through_3, NULL );
assert( status == EINVAL ); assert( status == EAGAIN );
puts( "Init: sched_yield to Task_1" ); puts( "Init: sched_yield to Task_1" );
status = sched_yield(); status = sched_yield();