mirror of
https://github.com/wownero/wowlet.git
synced 2026-12-02 04:54:15 +01:00
Qt6: hide setupChildProcess
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user