mirror of
https://github.com/wownero/wowlet.git
synced 2026-11-19 06:34:12 +01:00
Feather, a free Monero desktop wallet
Co-Authored-By: tobtoht <thotbot@protonmail.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020, The Monero Project.
|
||||
|
||||
#include <QtCore>
|
||||
#include <QProcess>
|
||||
#include "utils/childproc.h"
|
||||
|
||||
ChildProcess::ChildProcess(QObject* parent) {}
|
||||
ChildProcess::~ChildProcess() {}
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user