19#ifndef CORE_POSIX_PROCESS_H_
20#define CORE_POSIX_PROCESS_H_
29#include <system_error>
69 virtual pid_t
pid()
const;
89 std::shared_ptr<Private> d;
The ProcessGroup class models a signalable group of process.
Process(pid_t pid)
Creates a process instance wrapping an existing process.
virtual ProcessGroup process_group(std::error_code &se) const noexcept(true)
Queries the id of the process group this process belongs to.
virtual ProcessGroup process_group_or_throw() const
Queries the id of the process group this process belongs to.
static Process invalid()
Returns an invalid instance for testing purposes.
virtual pid_t pid() const
Query the pid of the process.
CORE_POSIX_DLL_LOCAL Signalable(pid_t pid)
Signal
The Signal enum collects the most common POSIX signals.
#define CORE_POSIX_DLL_PUBLIC
#define CORE_POSIX_DLL_LOCAL