summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/kernel/tqthread_unix.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/tqthread_unix.cpp b/src/kernel/tqthread_unix.cpp
index c6662dbeb..00c389d20 100644
--- a/src/kernel/tqthread_unix.cpp
+++ b/src/kernel/tqthread_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