summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreaddetach.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/pthreaddetach.c')
-rw-r--r--cpukit/posix/src/pthreaddetach.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/posix/src/pthreaddetach.c b/cpukit/posix/src/pthreaddetach.c
index 1087a2c592..88fd0e070c 100644
--- a/cpukit/posix/src/pthreaddetach.c
+++ b/cpukit/posix/src/pthreaddetach.c
@@ -42,6 +42,7 @@ int pthread_detach(
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
api->detachstate = PTHREAD_CREATE_DETACHED;
+ api->Attributes.detachstate = PTHREAD_CREATE_DETACHED;
_Objects_Put( &the_thread->Object );
return 0;