mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 12:09:50 +00:00
133700160a
Co-Authored-By: tobtoht <thotbot@protonmail.com>
16 lines
No EOL
470 B
C++
16 lines
No EOL
470 B
C++
// 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
|
|
} |