Re-revert "Delay creation of the process manager"
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 18 Sep 2012 11:54:35 +0000 (13:54 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 15 Oct 2012 02:52:08 +0000 (04:52 +0200)
commit24a231d7a3f54a4a3ac23aed4759bb9b7556c15f
tree04d25851037dc61e4b611523afa11e6587aa718f
parent21426f281e09b6043e3c1f9b5d3a48644a4965fe
Re-revert "Delay creation of the process manager"

This reverts commit daba2c507ad42c66dafa6a29cffa94e9641e0c58,
re-applying commit d9c06bf25210b3d0b31ee6126e57bcb82c292da1, because
the change was accidentally brought back in commit
eae8fb85997d82ecec0743ba3e470681129bff41.

There's a potential deadlock when a QProcess is created while a
QCoreApplication is instantiated but never executed, or if the main
thread waits() for the child thread.

Task-number: QTBUG-27260
Change-Id: I9e0fdc0341b3063de90979377bac35f2a827b260
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
src/corelib/io/qprocess_unix.cpp
src/corelib/kernel/qcoreapplication.cpp
src/corelib/kernel/qcoreapplication.h
src/corelib/kernel/qcoreapplication_p.h
tests/auto/corelib/io/io.pro
tests/auto/corelib/io/qprocess-noapplication/qprocess-noapplication.pro [new file with mode: 0644]
tests/auto/corelib/io/qprocess-noapplication/tst_qprocessnoapplication.cpp [new file with mode: 0644]