]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
Qt6: hide setupChildProcess
authortobtoht <thotbot@protonmail.com>
Tue, 24 May 2022 15:36:42 +0000 (17:36 +0200)
committertobtoht <thotbot@protonmail.com>
Tue, 24 May 2022 15:36:42 +0000 (17:36 +0200)
src/utils/childproc.cpp
src/utils/childproc.h

index 671b1b4e9febbcbe6b7f3147d44cb7ca158295f6..a5690601d7cf3cfe53550ecc8b321e8cc9faf0b9 100644 (file)
@@ -6,9 +6,11 @@
 ChildProcess::ChildProcess(QObject* parent) {}
 ChildProcess::~ChildProcess() {}
 
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
 void ChildProcess::setupChildProcess() {
 #if defined(HAVE_SYS_PRCTL_H) && defined(Q_OS_UNIX)
     // https://smackerelofopinion.blogspot.com/2015/11/using-prsetpdeathsig-to-reap-child.html
     ::prctl(PR_SET_PDEATHSIG, SIGKILL);
 #endif
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 89ba2aa8c976d30a6bd4a10a3c120730b30f73d3..6b87e1aba1fe74ba428d1a527efa234bad81ee99 100644 (file)
@@ -17,7 +17,9 @@ public:
     explicit ChildProcess(QObject* parent = nullptr);
     ~ChildProcess() override;
 protected:
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
     void setupChildProcess() override;
+#endif
 };