diff --git a/src/kernel/tqthread_unix.cpp b/src/kernel/tqthread_unix.cpp index c6662dbe..00c389d2 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