summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qprocess_unix.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-06-21 14:23:48 -0700
committerThiago Macieira <thiago.macieira@intel.com>2022-06-27 17:39:35 -0700
commit5e60b2ab160bc5ff3bc41bb8991753785d2fc285 (patch)
treee700984c9b94fc40de45be3dd9ac9cc03c335469 /src/corelib/io/qprocess_unix.cpp
parent44927b801ab8afac901132f9505a42b41821cb55 (diff)
QProcess: re-enable pdfork() on FreeBSD
The forkfd_pidfd is a Linux feature, but we ended up disabling the equivalent functionality on FreeBSD. Pick-to: 6.3 6.4 Change-Id: I6d3880c7d99d4fc494c8fffd16fabfbc38865f94 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/io/qprocess_unix.cpp')
-rw-r--r--src/corelib/io/qprocess_unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qprocess_unix.cpp b/src/corelib/io/qprocess_unix.cpp
index 364da89ff6..59e920bc18 100644
--- a/src/corelib/io/qprocess_unix.cpp
+++ b/src/corelib/io/qprocess_unix.cpp
@@ -455,7 +455,7 @@ void QProcessPrivate::startProcess()
int ffdflags = FFD_CLOEXEC;
// QTBUG-86285
-#if !QT_CONFIG(forkfd_pidfd)
+#if defined(Q_OS_LINUX) && !QT_CONFIG(forkfd_pidfd)
ffdflags |= FFD_USE_FORK;
#endif