2004-09-27 Joel Sherrill <joel@OARcorp.com>

PR 294/rtems
	* src/pthread.c: POSIX thread exit handler now confirms that it created
	the executing thread before implicitly exitting it.
This commit is contained in:
Joel Sherrill
2004-09-27 22:43:14 +00:00
parent 206d973621
commit 0f5bc89c21
2 changed files with 12 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2004-09-27 Joel Sherrill <joel@OARcorp.com>
PR 294/rtems
* src/pthread.c: POSIX thread exit handler now confirms that it created
the executing thread before implicitly exitting it.
2004-05-21 Joel Sherrill <joel@OARcorp.com> 2004-05-21 Joel Sherrill <joel@OARcorp.com>
PR 628/rtems PR 628/rtems

View File

@@ -239,7 +239,12 @@ User_extensions_routine _POSIX_Threads_Exitted_extension(
Thread_Control *executing Thread_Control *executing
) )
{ {
pthread_exit( executing->Wait.return_argument ); /*
* If the executing thread was not created with the POSIX API, then this
* API do not get to define its exit behavior.
*/
if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API )
pthread_exit( executing->Wait.return_argument );
} }
/*PAGE /*PAGE