diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-09-27 22:44:19 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-09-27 22:44:19 +0000 |
commit | 092fe28eb2014bc648e62bbabbaf908dc76a0c05 (patch) | |
tree | 4facdea9ba7d002b0277a9d35cde30118e68b618 /cpukit | |
parent | Correct PR number. (diff) | |
download | rtems-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/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/posix/src/pthread.c | 7 |
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 |