qt5base-lts/tests/auto/corelib/io/qprocess
Thiago Macieira ba5e2ce49a forkfd: fix forkfd_wait when FFD_USE_FORK was active
If we detected that the OS supports a version of system forkfd (Linux
pidfd, FreeBSD procdesc), the forkfd_wait() function was using only the
system waiting implementation, which of course can't work for file
descriptors created with FFD_USE_FORK. So just detect EBADF and attempt
again.

If the file descriptor is neither one of our pipes nor a system forkfd,
bad things will happen...

Fixes: QTBUG-82351
Change-Id: I4e559af2a9a1455ab770fffd15f59fb3160b22eb
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
2020-03-25 20:19:36 +01:00
..
fileWriterProcess Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
test Skip tst_QProcess::processesInMultipleThreads under QEMU 2018-05-14 12:36:33 +00:00
testBatFiles
testDetached Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testExitCodes Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testForwarding Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testForwardingHelper Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testGuiProcess Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testProcessCrash Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testProcessDeadWhileReading Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testProcessEcho Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testProcessEcho2 Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testProcessEcho3 Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testProcessEchoGui Migrate Windows system libs to external dependencies 2019-05-08 08:30:02 +00:00
testProcessEnvironment Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testProcessEOF Remove cruft from testProcessEOF.pro 2019-04-30 10:51:02 +00:00
testProcessHang Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testProcessNormal Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testProcessOutput Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testProcessSpacesArgs Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testSetNamedPipeHandleState Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testSetWorkingDirectory Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
testSoftExit Migrate Windows system libs to external dependencies 2019-05-08 08:30:02 +00:00
testSpaceInName Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
.gitignore test: Moving tst_QProcess::echoTest_performance() 2012-10-19 02:43:05 +02:00
BLACKLIST Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
qprocess.pri QProcess::startDetached: Fix behavior change on Windows 2018-08-03 08:09:30 +00:00
qprocess.pro QtCore: Remove Windows CE. 2016-03-30 11:22:47 +00:00
tst_qprocess.cpp forkfd: fix forkfd_wait when FFD_USE_FORK was active 2020-03-25 20:19:36 +01:00