ba05af82d3
There are two types of stack unwinding that can happen on Unix systems: C++ exceptions and PThread cancellations (on some systems, like Linux, PThread cancellations can be caught in catch(...) statements). We call a variety of PThread cancellation functions from inside the child stub, like close(). To avoid problems, we disable PThread cancellations completely before fork() or vfork(). The C++ exception case is simpler, because we can be sure of catching them with the catch (...) statement and simply transform them into an error message. This is also testable, which the PThread cancellation isn't. The error message isn't ideal because we're string-frozen. I'll improve it for 6.6. Pick-to: 6.5 Change-Id: Icfe44ecf285a480fafe4fffd174d97a475c93ff1 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> |
||
---|---|---|
.. | ||
fileWriterProcess | ||
test | ||
testBatFiles | ||
testDetached | ||
testExitCodes | ||
testForwarding | ||
testForwardingHelper | ||
testGuiProcess | ||
testProcessCrash | ||
testProcessDeadWhileReading | ||
testProcessEcho | ||
testProcessEcho2 | ||
testProcessEcho3 | ||
testProcessEchoGui | ||
testProcessEnvironment | ||
testProcessEOF | ||
testProcessHang | ||
testProcessNormal | ||
testProcessOutput | ||
testProcessSpacesArgs | ||
testSetNamedPipeHandleState | ||
testSetWorkingDirectory | ||
testSoftExit | ||
testSpaceInName | ||
.gitignore | ||
BLACKLIST | ||
CMakeLists.txt | ||
tst_qprocess.cpp |