summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthread.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-09-27 22:44:19 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-09-27 22:44:19 +0000
commit092fe28eb2014bc648e62bbabbaf908dc76a0c05 (patch)
tree4facdea9ba7d002b0277a9d35cde30118e68b618 /cpukit/posix/src/pthread.c
parentCorrect PR number. (diff)
downloadrtems-092fe28eb2014bc648e62bbabbaf908dc76a0c05.tar.bz2
2004-09-27 Joel Sherrill <joel@OARcorp.com>
PR 294/rtems * posix/src/pthread.c: POSIX thread exit handler now confirms that it created the executing thread before implicitly exitting it.
Diffstat (limited to '')
-rw-r--r--cpukit/posix/src/pthread.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index 0212f9d6ac..bbd7a73a9e 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -239,7 +239,12 @@ User_extensions_routine _POSIX_Threads_Exitted_extension(
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