path: root/src/corelib/kernel
diff options
authorThiago Macieira <>2013-12-13 22:07:52 -0800
committerThiago Macieira <>2015-01-23 19:13:17 +0100
commit1814142b7a11befab315bf3f9d91c4ffbf56ef3e (patch)
tree6cb50747f5b4b3a1251af3ba29c6f1194fbdbb46 /src/corelib/kernel
parentf3459a43af8098d286ff272cc8da5e0c755d0700 (diff)
Use forkfd in QProcess
Replace the existing code in QProcess that dealt with signaling of child processes exiting with forkfd and spawnfd. The previous code was convoluted and hard to maintain, having shown its age in the last year. I've been running it for a year and a half and the new implementation is definitely an improvement. This change replaces support for the QNX Neutrino spawn() call with the POSIX version. We lose the ability to do setsid(), but we gain quite a few ioctls() that were done to fill in the file descriptor mapping structure. That's also the only OS for which we have the ability to thread-safely chdir() before the call to spawnfd(). Another advantage is that forkfd does not require a dedicated thread running to handle child processes exiting. Change-Id: I5eb76821dfdb6a8ed2989d7f53b3c31e515c3174 Reviewed-by: Rafael Roquetto <>
Diffstat (limited to 'src/corelib/kernel')
1 files changed, 0 insertions, 9 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp
index 555b5e0263..d082a2739a 100644
--- a/src/corelib/kernel/qcoreapplication.cpp
+++ b/src/corelib/kernel/qcoreapplication.cpp
@@ -48,7 +48,6 @@
#include <qhash.h>
#include <qmutex.h>
#include <private/qloggingregistry_p.h>
-#include <private/qprocess_p.h>
#include <qstandardpaths.h>
#include <qtextcodec.h>
@@ -739,14 +738,6 @@ void QCoreApplication::init()
-#ifndef QT_NO_QOBJECT
-#if defined(Q_OS_UNIX) && !(defined(QT_NO_PROCESS))
- // Make sure the process manager thread object is created in the main
- // thread.
- QProcessPrivate::initializeProcessManager();
#ifdef QT_EVAL
extern void qt_core_eval_init(QCoreApplicationPrivate::Type);