mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 23:31:32 +02:00
16 lines
495 B
C++
16 lines
495 B
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
|
|
|
|
#include "utils/childproc.h"
|
|
|
|
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 |