summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/kernel/qthread_unix.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/qthread_unix.cpp b/src/kernel/qthread_unix.cpp
index be67e002d..b68b5cd7a 100644
--- a/src/kernel/qthread_unix.cpp
+++ b/src/kernel/qthread_unix.cpp
@@ -129,6 +129,7 @@ void *TQThreadInstance::start( void *_arg )
#if defined(QT_USE_GLIBMAINLOOP)
// This is the first time we have access to the native pthread ID of this newly created thread
((TQThreadInstance*)arg[1])->thread_id = pthread_self();
+ pthread_detach(pthread_self());
#endif // QT_USE_GLIBMAINLOOP
#ifdef QT_DEBUG