30 using handler_t = void (*)(int);
34 volatile std::atomic_bool* flag);
45 volatile std::atomic_bool* flag_;
47 using sigaction_t =
struct sigaction;
48 sigaction_t old_action_;
Sum type of symbolic::Expression and symbolic::Formula.
Definition: api.cc:9
SignalHandlerGuard(int sig, handler_t handler, volatile std::atomic_bool *flag)
Registers the new handler and saves the current one.
Definition: signal_handler_guard.cc:10
Sets a new signal handler and restores the old one when it goes out of scope.
Definition: signal_handler_guard.h:28
~SignalHandlerGuard()
Restores the old signal handler. If the flag is set, clear it.
Definition: signal_handler_guard.cc:24