#include <atomic>
#include <csignal>
#include <cstdlib>
#include <iostream>
#include <new>
#include "child-list.h"
#include "cmd-edit.h"
#include "oct-syscalls.h"
#include "quit.h"
#include "signal-wrappers.h"
#include "defun.h"
#include "error.h"
#include "input.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "load-save.h"
#include "octave.h"
#include "oct-map.h"
#include "pager.h"
#include "sighandlers.h"
#include "sysdep.h"
#include "utils.h"
#include "variables.h"
Go to the source code of this file.
Functions | |
interrupt_handler | catch_interrupts () |
octave_value_list | Fdebug_on_interrupt (const octave_value_list &args, int nargout) |
octave_value_list | FSIG (const octave_value_list &args, int) |
octave_value_list | Fsighup_dumps_octave_core (const octave_value_list &args, int nargout) |
octave_value_list | Fsigquit_dumps_octave_core (const octave_value_list &args, int nargout) |
octave_value_list | Fsigterm_dumps_octave_core (const octave_value_list &args, int nargout) |
interrupt_handler | ignore_interrupts () |
void | install_signal_handlers () |
void | respond_to_pending_signals () |
interrupt_handler | set_interrupt_handler (const volatile interrupt_handler &h, bool restart_syscalls) |
sig_handler * | set_signal_handler (const char *signame, sig_handler *handler, bool restart_syscalls) |
sig_handler * | set_signal_handler (int sig, sig_handler *handler, bool restart_syscalls) |
Variables | |
std::atomic< bool > | can_interrupt {false} |
int | pipe_handler_error_count = 0 |
bool | Vdebug_on_interrupt = false |
interrupt_handler catch_interrupts | ( | ) |
Definition at line 327 of file sighandlers.cc.
References interrupt_handler::int_handler, and set_signal_handler().
Referenced by interpreter::initialize(), and interpreter::recover_from_exception().
octave_value_list Fdebug_on_interrupt | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 532 of file sighandlers.cc.
References octave::set_internal_variable(), and Vdebug_on_interrupt.
octave_value_list FSIG | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 499 of file sighandlers.cc.
References m, and print_usage().
octave_value_list Fsighup_dumps_octave_core | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 562 of file sighandlers.cc.
References octave::set_internal_variable().
octave_value_list Fsigquit_dumps_octave_core | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 593 of file sighandlers.cc.
References octave::set_internal_variable().
octave_value_list Fsigterm_dumps_octave_core | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 624 of file sighandlers.cc.
References octave::set_internal_variable().
interrupt_handler ignore_interrupts | ( | ) |
Definition at line 338 of file sighandlers.cc.
References interrupt_handler::brk_handler, interrupt_handler::int_handler, and set_signal_handler().
Referenced by octave::kbhit().
void install_signal_handlers | ( | ) |
Definition at line 366 of file sighandlers.cc.
void respond_to_pending_signals | ( | ) |
Definition at line 111 of file sighandlers.cc.
References __get_child_list__(), octave_get_sig_number(), and octave_num_signals().
Referenced by interpreter::initialize().
interrupt_handler set_interrupt_handler | ( | const volatile interrupt_handler & | h, |
bool | restart_syscalls | ||
) |
Definition at line 349 of file sighandlers.cc.
References interrupt_handler::brk_handler, interrupt_handler::int_handler, and set_signal_handler().
Referenced by octave::kbhit().
sig_handler* set_signal_handler | ( | const char * | signame, |
sig_handler * | handler, | ||
bool | restart_syscalls | ||
) |
Definition at line 266 of file sighandlers.cc.
References octave_set_signal_handler_by_name().
sig_handler* set_signal_handler | ( | int | sig, |
sig_handler * | handler, | ||
bool | restart_syscalls | ||
) |
Definition at line 260 of file sighandlers.cc.
References octave_set_signal_handler_internal().
Referenced by catch_interrupts(), ignore_interrupts(), and set_interrupt_handler().
std::atomic<bool> can_interrupt {false} |
Definition at line 69 of file sighandlers.cc.
Referenced by interpreter::initialize(), and interpreter::recover_from_exception().
int pipe_handler_error_count = 0 |
Definition at line 66 of file sighandlers.cc.
bool Vdebug_on_interrupt = false |
Definition at line 72 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(), and bp_table::stop_on_err_warn_status().