Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
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
13namespace Sonde::Cli {
14
18void startInOwnGroup(QProcess &process);
19
26{
27public:
30#ifdef Q_OS_WIN
33#else
36#endif
37 Q_DISABLE_COPY_MOVE(StdHandlesNotInherited)
38
39private:
40 [[maybe_unused]] std::array<unsigned long, 3>
42};
43
48QString processStartTime(qint64 pid);
49
54bool processAlive(qint64 pid);
55
59bool signalGroup(qint64 pid, bool kill);
60
61} // namespace Sonde::Cli
std::array< unsigned long, 3 > m_flags
Each handle's flags before (Windows).
Definition processes.h:41
~StdHandlesNotInherited()=default
Nothing to put back.
StdHandlesNotInherited()
Makes the handles not inherited, remembering how they were.
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