36 auto result = ::kill(d->pid, static_cast<int>(signal));
39 throw std::system_error(errno, std::system_category());
44 auto result = ::kill(d->pid, static_cast<int>(signal));
48 e = std::error_code(errno, std::system_category());
CORE_POSIX_DLL_LOCAL Signalable(pid_t pid)
virtual void send_signal(Signal signal, std::error_code &e) noexcept(true)
Sends a signal to this signalable object.
Signal
The Signal enum collects the most common POSIX signals.
virtual void send_signal_or_throw(Signal signal)
Sends a signal to this signalable object.