mirror of
https://github.com/feather-wallet/feather.git
synced 2025-03-21 14:38:44 +00:00
Qt6: hide setupChildProcess
This commit is contained in:
parent
9d2da9b2f0
commit
9d5bc2b8c6
2 changed files with 5 additions and 1 deletions
|
@ -6,9 +6,11 @@
|
||||||
ChildProcess::ChildProcess(QObject* parent) {}
|
ChildProcess::ChildProcess(QObject* parent) {}
|
||||||
ChildProcess::~ChildProcess() {}
|
ChildProcess::~ChildProcess() {}
|
||||||
|
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
void ChildProcess::setupChildProcess() {
|
void ChildProcess::setupChildProcess() {
|
||||||
#if defined(HAVE_SYS_PRCTL_H) && defined(Q_OS_UNIX)
|
#if defined(HAVE_SYS_PRCTL_H) && defined(Q_OS_UNIX)
|
||||||
// https://smackerelofopinion.blogspot.com/2015/11/using-prsetpdeathsig-to-reap-child.html
|
// https://smackerelofopinion.blogspot.com/2015/11/using-prsetpdeathsig-to-reap-child.html
|
||||||
::prctl(PR_SET_PDEATHSIG, SIGKILL);
|
::prctl(PR_SET_PDEATHSIG, SIGKILL);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
|
@ -17,7 +17,9 @@ public:
|
||||||
explicit ChildProcess(QObject* parent = nullptr);
|
explicit ChildProcess(QObject* parent = nullptr);
|
||||||
~ChildProcess() override;
|
~ChildProcess() override;
|
||||||
protected:
|
protected:
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
void setupChildProcess() override;
|
void setupChildProcess() override;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue