2020-10-07 10:36:04 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2020-12-26 19:56:06 +00:00
|
|
|
// Copyright (c) 2020-2021, The Monero Project.
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-03-30 09:52:29 +00:00
|
|
|
#ifndef WOWLET_FPROCESS_H
|
|
|
|
#define WOWLET_FPROCESS_H
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
#include <QProcess>
|
|
|
|
|
|
|
|
#if defined(HAVE_SYS_PRCTL_H) && defined(Q_OS_UNIX)
|
|
|
|
#include <signal.h>
|
|
|
|
#include <sys/prctl.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class ChildProcess : public QProcess {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit ChildProcess(QObject* parent = nullptr);
|
|
|
|
~ChildProcess();
|
|
|
|
protected:
|
|
|
|
void setupChildProcess() override;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-03-30 09:52:29 +00:00
|
|
|
#endif //WOWLET_FPROCESS_H
|