Process signals.
hang_up = SIGHUPkeyboard_interrupt = SIGINTquit = SIGQUITillegal_instruction = SIGILLbreakpoint = SIGTRAPabort = SIGABRTfloating_point_exception = SIGFPEkill = SIGKILLbad_memory_access = SIGBUSsegmentation_fault = SIGSEGVbad_argument = SIGSYSbroken_pipe = SIGPIPEalarm = SIGALRMterminate = SIGTERMurgent = SIGURGcoprocessor_stack_fault = SIGSTKFLTstop = SIGSTOPterminal_stop = SIGTSTPresume = SIGCONTchild = SIGCHLDterminal_input = SIGTTINterminal_output = SIGTTOUpoll = SIGPOLLcpu_time_limit_exceeded = SIGXCPUfile_size_limit_exceeded = SIGXFSZvirtual_alarm = SIGVTALRMprofile = SIGPROFterminal_window_resize = SIGWINCHuser_defined_1 = SIGUSR1power_failure = SIGPWRuser_defined_2 = SIGUSR2Signal set.
public sigset_ttemplate <class F> for_each(F func) -> void
Call func for each signal in the set.
signal_set(signal_type s)explicit
Construct signal set containing only signal s.
signal_set()Construct empty signal set.
signal_set(::sigset_t rhs)Signal callback.
public sigaction_typemask(signal_set rhs) -> voidmask() const -> signal_setflags(flag rhs) -> voidflags() const -> flagsignal_action(void(*)(int, signal_information *, void *) func, flag flags = flag::info)signal_action(void(*)(int, siginfo_t *, void *) func, flag flags = flag::info)Construct signal action from new-style signal handler.
signal_action(void(*)(int) func)Construct signal action from old-style signal handler.
signal_action()Blocks/unblocks specified signals upon creation/destruction.
unlock() -> voidUnblock all specified signals.
lock() -> voidBlock all specified signals.
~signal_guard()Terminates if unlock fails.
signal_guard(signal_set s)explicit
Construct signal guard that blocks all signals in set s.
public siginfo_tcall() const -> callsfd() const -> fd_typeaddress() -> void *address() const -> const void *exit_code() const -> intsystem_cpu_time() const -> clock_tuser_cpu_time() const -> clock_tuser_id() const -> uid_typeprocess_id() const -> pid_typesignal() const -> inline ::sys::signalerror_condition() const -> std::errc
Block signals for the current process.
Unblock signals for the current process.
to_string(signal s) -> const char *Ignore specified signal. By default any signal for which callback function is not set may kill the process. This routine allows to ignore specified signals.
Set signal callback function.
Use default action for the specified signal.