Sonde
v1.1.0
Embeddable Model Context Protocol server for Qt applications
Toggle main menu visibility
Loading...
Searching...
No Matches
processes.h
Go to the documentation of this file.
1
#pragma once
2
7
8
#include <QtCore/QProcess>
9
#include <QtCore/QString>
10
11
#include <array>
12
13
namespace
Sonde::Cli {
14
18
void
startInOwnGroup
(QProcess &process);
19
25
class
StdHandlesNotInherited
26
{
27
public
:
29
StdHandlesNotInherited
();
30
#ifdef Q_OS_WIN
32
~StdHandlesNotInherited
();
33
#else
35
~StdHandlesNotInherited
() =
default
;
36
#endif
37
Q_DISABLE_COPY_MOVE(
StdHandlesNotInherited
)
38
39
private
:
40
[[maybe_unused]] std::array<unsigned long, 3>
41
m_flags
{ };
42
};
43
48
QString processStartTime(qint64 pid);
49
54
bool
processAlive(qint64 pid);
55
59
bool
signalGroup(qint64 pid,
bool
kill);
60
61
}
// namespace Sonde::Cli
Sonde::Cli::StdHandlesNotInherited::m_flags
std::array< unsigned long, 3 > m_flags
Each handle's flags before (Windows).
Definition
processes.h:41
Sonde::Cli::StdHandlesNotInherited::~StdHandlesNotInherited
~StdHandlesNotInherited()=default
Nothing to put back.
Sonde::Cli::StdHandlesNotInherited::StdHandlesNotInherited
StdHandlesNotInherited()
Makes the handles not inherited, remembering how they were.
Sonde::Cli::startInOwnGroup
void startInOwnGroup(QProcess &process)
Prepares process to start the application in a group of its own (a new session on POSIX,...
Definition
processstart.cpp:63
tools
cli
processes.h
Generated by
1.18.0