summaryrefslogtreecommitdiffstats
path: root/cpukit
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
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 'cpukit')
-rw-r--r--cpukit/ChangeLog6
-rw-r--r--cpukit/posix/src/pthread.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 66e46d3294..c4488f1366 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,11 @@
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.
+
+2004-09-27 Joel Sherrill <joel@OARcorp.com>
+
* libmisc/stackchk/check.c: Spacing.
2004-09-24 Ralf Corsepius <ralf_corsepius@rtems.org>
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