qt5base-lts/tests/auto/corelib
Thiago Macieira bd32c7d705 QProcess/Unix: block all Unix signals between vfork() and exec()
This is similar to and extends the prevention of thread cancellation
introduced by commit ba05af82d3. This
prevents the situation in which a signal gets delivered (usually because
of a crash) and the parent process' handler is run, doing things it
shouldn't between vfork() and execve().

Most C libraries (all that I've investigated) unblock SIGABRT on
abort(), so this doesn't affect them. Likewise, on most OSes, crashes
ignore the signal block and terminate the application -- Darwin appears
to be an exception, but vfork() is not enabled there. Both situations
are tested by terminateInChildProcessModifier().

Task-number: QTBUG-113822
Change-Id: Ib5ce7a497e034ebabb2cfffd17628ca33969b7af
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-06-28 00:16:31 -07:00
..
animation QPauseAnimation test: add QNX to platforms that might fail 2023-05-25 14:06:50 +02:00
global Short live Q_NODISCARD_(CTOR_)X! 2023-06-22 18:20:09 +02:00
io QProcess/Unix: block all Unix signals between vfork() and exec() 2023-06-28 00:16:31 -07:00
ipc IPC: tst_QNativeIpcKey: rename duplicate row in test 2023-04-28 22:30:13 -05:00
itemmodels QAbstractProxyModel: delay headerDataChanged emissions when inserting/removing rows/columns 2023-06-23 16:24:27 +02:00
kernel Pacify MSVC compiler incorrectly warning about unused variable 2023-06-22 13:20:26 +00:00
mimetypes QMimeDatabase: de-duplicate some code in the unittests 2023-05-07 14:29:28 +03:00
platform Don't add prefix for BaseName 2023-06-16 22:54:36 +03:00
plugin QLibraryPrivate: Actually merge load hints 2023-06-20 15:41:20 +02:00
serialization QXmlStreamReader: make fastScanName() indicate parsing status to callers 2023-06-28 00:11:21 +03:00
text Skip the tst_QRegularExpression::threadSafety test on WASM temporarily 2023-06-26 11:58:27 +01:00
thread Handle a couple of GCC 13 warnings about dangling references 2023-06-28 01:09:58 +03:00
time Add test-cases for QDate::{start,end}OfDay() at QDateTime's bounds 2023-05-15 14:02:41 +02:00
tools Add q20::erase_if(std::vector, pred) and erase(vector, val) 2023-06-22 21:13:31 +00:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00