/// Interactive mode ^C handler. Respond to int signal by setting interrupted-flag and stopping all /// loops and conditionals. static void handle_int(int sig, siginfo_t *info, void *context) { reader_handle_sigint(); default_handler(sig, info, context); }
/// Interactive mode ^C handler. Respond to int signal by setting interrupted-flag and stopping all /// loops and conditionals. static void handle_int(int sig, siginfo_t *info, void *context) { if (reraise_if_forked_child(sig)) return; reader_handle_sigint(); default_handler(sig, info, context); topic_monitor_t::principal().post(topic_t::sighupint); }