From 5e60b2ab160bc5ff3bc41bb8991753785d2fc285 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 21 Jun 2022 14:23:48 -0700 Subject: [PATCH] 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 Reviewed-by: Fabian Kosmale --- 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