2007-02-21 Joel Sherrill <joel@OARcorp.com>

* loopback/init.c: Fix exit paths in client thread and main test
	thread.
This commit is contained in:
Joel Sherrill
2007-02-21 23:44:03 +00:00
parent f9f1d968b5
commit b767f96678
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2007-02-21 Joel Sherrill <joel@OARcorp.com>
* loopback/init.c: Fix exit paths in client thread and main test
thread.
2006-12-18 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> 2006-12-18 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* init.c: added stdout flushs after prompts * init.c: added stdout flushs after prompts

View File

@@ -220,6 +220,7 @@ static rtems_task clientTask(rtems_task_argument arg)
{ {
clientWorker(arg); clientWorker(arg);
printf("Client task terminating.\n"); printf("Client task terminating.\n");
rtems_task_delete( RTEMS_SELF );
} }
/* /*
@@ -263,5 +264,7 @@ Init (rtems_task_argument ignored)
spawnTask(clientTask, 120, 5); spawnTask(clientTask, 120, 5);
spawnTask(clientTask, 120, 6); spawnTask(clientTask, 120, 6);
rtems_task_suspend(RTEMS_SELF); rtems_task_wake_after(500);
puts( "*** END OF LOOPBACK TEST ***" );
exit( 0 );
} }