Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
processstop.cpp File Reference

Stopping the application and what it started (design 0030). More...

#include "processes.h"
#include <csignal>
#include <sys/types.h>

Namespaces

namespace  Sonde
 Embeddable Model Context Protocol server for Qt applications.

Functions

bool Sonde::Cli::signalGroup (qint64 pid, bool kill)
 Stops the application's process group (POSIX: SIGTERM, or SIGKILL if kill), or ends its process tree (Windows, at once in either case).

Detailed Description

Stopping the application and what it started (design 0030).

Function Documentation

◆ signalGroup()

bool Sonde::Cli::signalGroup ( qint64 pid,
bool kill )

Stops the application's process group (POSIX: SIGTERM, or SIGKILL if kill), or ends its process tree (Windows, at once in either case).

Returns
Whether there was something to signal.