changed error code

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

View File

@@ -99,9 +99,9 @@ void *POSIX_Init(
/* must go around pthread_attr_setstacksize to set a bad stack size */
attr.stacksize = 0;
puts( "Init: pthread_create - EINVAL (stacksize too small)" );
puts( "Init: pthread_create - EAGAIN (stacksize too small)" );
status = pthread_create( &Task_id, &attr, Task_1, NULL );
assert( status == EINVAL );
assert( status == EAGAIN );
attr.stacksize = BSP_Configuration.work_space_size;
puts( "Init: pthread_create - EINVAL (stacksize too large)" );