Go to the source code of this file.
Classes | |
struct | interrupt_handler |
Typedefs | |
typedef void | sig_handler(int) |
Functions | |
OCTINTERP_API interrupt_handler | catch_interrupts (void) |
OCTINTERP_API interrupt_handler | ignore_interrupts (void) |
OCTINTERP_API void | install_signal_handlers (void) |
OCTINTERP_API void | respond_to_pending_signals (void) |
OCTINTERP_API interrupt_handler | set_interrupt_handler (const volatile interrupt_handler &h, bool restart_syscalls=true) |
OCTINTERP_API sig_handler * | set_signal_handler (const char *signame, sig_handler *h, bool restart_syscalls=true) |
OCTINTERP_API sig_handler * | set_signal_handler (int sig, sig_handler *h, bool restart_syscalls=true) |
Variables | |
OCTINTERP_API bool | can_interrupt |
int | pipe_handler_error_count |
OCTINTERP_API bool | Vdebug_on_interrupt |
typedef void sig_handler(int) |
Definition at line 46 of file sighandlers.h.
OCTINTERP_API interrupt_handler catch_interrupts | ( | void | ) |
Definition at line 326 of file sighandlers.cc.
References interrupt_handler::brk_handler, generic_sig_handler(), interrupt_handler::int_handler, and set_signal_handler().
Referenced by interpreter::initialize(), install_signal_handlers(), and interpreter::recover_from_exception().
OCTINTERP_API interrupt_handler ignore_interrupts | ( | void | ) |
Definition at line 337 of file sighandlers.cc.
References interrupt_handler::brk_handler, interrupt_handler::int_handler, and set_signal_handler().
Referenced by history_system::do_edit_history(), kbhit(), and respond_to_pending_signals().
OCTINTERP_API void install_signal_handlers | ( | void | ) |
Definition at line 365 of file sighandlers.cc.
References catch_interrupts(), deadly_sig_handler(), fpe_sig_handler(), generic_sig_handler(), octave_create_interrupt_watcher_thread(), octave_num_signals(), set_signal_handler(), and signals_caught.
OCTINTERP_API void respond_to_pending_signals | ( | void | ) |
Definition at line 110 of file sighandlers.cc.
References __get_child_list__(), ignore_interrupts(), my_friendly_exit(), octave_block_child(), octave_get_sig_number(), octave_interrupt_state, octave_num_signals(), octave_strsignal_wrapper(), octave_unblock_child(), pipe_handler_error_count, child_list::reap(), set_interrupt_handler(), signals_caught, Vsighup_dumps_octave_core, Vsigquit_dumps_octave_core, Vsigterm_dumps_octave_core, and child_list::wait().
Referenced by interpreter::initialize().
OCTINTERP_API interrupt_handler set_interrupt_handler | ( | const volatile interrupt_handler & | h, |
bool | restart_syscalls = true |
||
) |
Definition at line 348 of file sighandlers.cc.
References interrupt_handler::brk_handler, interrupt_handler::int_handler, and set_signal_handler().
Referenced by history_system::do_edit_history(), kbhit(), and respond_to_pending_signals().
OCTINTERP_API sig_handler* set_signal_handler | ( | const char * | signame, |
sig_handler * | h, | ||
bool | restart_syscalls = true |
||
) |
Definition at line 265 of file sighandlers.cc.
References octave_set_signal_handler_by_name().
OCTINTERP_API sig_handler* set_signal_handler | ( | int | sig, |
sig_handler * | h, | ||
bool | restart_syscalls = true |
||
) |
Definition at line 259 of file sighandlers.cc.
References octave_set_signal_handler_internal().
Referenced by catch_interrupts(), ignore_interrupts(), install_signal_handlers(), and set_interrupt_handler().
|
extern |
Definition at line 68 of file sighandlers.cc.
Referenced by generic_sig_handler(), interpreter::initialize(), and interpreter::recover_from_exception().
|
extern |
Definition at line 65 of file sighandlers.cc.
Referenced by respond_to_pending_signals().
|
extern |
Definition at line 71 of file sighandlers.cc.
Referenced by bp_table::dbclear_all_signals(), bp_table::dbstop_process_map_args(), Fdebug_on_interrupt(), bp_table::parse_dbfunction_params(), bp_table::process_id_list(), and bp_table::stop_on_err_warn_status().