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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthreaddetach.c b/cpukit/posix/src/pthreaddetach.c
index 824537eb8c..52a42f6b37 100644
--- a/cpukit/posix/src/pthreaddetach.c
+++ b/cpukit/posix/src/pthreaddetach.c
@@ -43,7 +43,7 @@ int pthread_detach(
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
api->detachstate = PTHREAD_CREATE_DETACHED;
- _Thread_Enable_dispatch();
+ _Objects_Put( &the_thread->Object );
return 0;
#if defined(RTEMS_MULTIPROCESSING)