From df86a0effc5fa6d646f52fce47e0057058c6d6e2 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 21 Jun 2022 14:23:48 -0700 Subject: QProcess: re-enable pdfork() on FreeBSD The forkfd_pidfd is a Linux feature, but we ended up disabling the equivalent functionality on FreeBSD. Change-Id: I6d3880c7d99d4fc494c8fffd16fabfbc38865f94 Reviewed-by: Oswald Buddenhagen Reviewed-by: Fabian Kosmale (cherry picked from commit 5e60b2ab160bc5ff3bc41bb8991753785d2fc285) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/io/qprocess_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3