52 throw std::runtime_error(
"Cannot construct instance for invalid pid.");
69 throw std::system_error(
errno, std::system_category());
80 se = std::error_code(
errno, std::system_category());
The ProcessGroup class models a signalable group of process.
The Process class models a process and possible operations on it.
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 ~Process() noexcept
Frees resources associated with the process.
virtual pid_t pid() const
Query the pid of the process.
The Signalable class abstracts the ability of an entity to be delivered a posix signal.
Signal
The Signal enum collects the most common POSIX signals.