diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2025-11-18 09:54:52 -0800 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2025-11-20 14:18:21 -0800 |
| commit | c5c80ab8a9bcea96786e00fafd4ac46ce7752713 (patch) | |
| tree | b552bbbca3f5564a9aab5dee10280e95e68d2a0a /src/sql/doc/snippets/sqldatabase/sqldatabase.cpp | |
| parent | 51cdea1b78c47df50382ab71a64756dd5e481972 (diff) | |
forkfd: configure our signal handler to restart the syscall
This should help solve problems with other libraries that don't have
proper EINTR_LOOP around their operations. Like most of <stdio.h> and
thus <iostreams>.
This change does not affect FreeBSD or Linux, where we don't install a
signal handler in the first place. And obviously, it will have no effect
if something else overrides our signal handler without this flag. If
that happens, please complain to the piece of software that forgot the
flag.
This test has also revealed that Windows presents a similar wake up: if
the grandchild process shares the child's stdin (which happens by
default for startDetached()) the child gets woken up from
WaitForSingleObject() when the grandchild dies and thus fgets() returns
error. That has nothing to do with QProcess, and AFAICT is simply the
way pipes work on Windows.
Fixes: QTBUG-142041
Pick-to: 6.10 6.8 6.5
Change-Id: I5900f238ec4a85ed49affffd29fc4248cc272929
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/sql/doc/snippets/sqldatabase/sqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions
