GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
sighandlers.cc File Reference
#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_handlerset_signal_handler (const char *signame, sig_handler *handler, bool restart_syscalls)
 
sig_handlerset_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
 

Function Documentation

◆ catch_interrupts()

◆ Fdebug_on_interrupt()

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.

◆ FSIG()

octave_value_list FSIG ( const octave_value_list args,
int   
)

Definition at line 499 of file sighandlers.cc.

References m, and print_usage().

◆ Fsighup_dumps_octave_core()

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().

◆ Fsigquit_dumps_octave_core()

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().

◆ Fsigterm_dumps_octave_core()

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().

◆ ignore_interrupts()

interrupt_handler ignore_interrupts ( )

◆ install_signal_handlers()

void install_signal_handlers ( )

Definition at line 366 of file sighandlers.cc.

◆ respond_to_pending_signals()

void respond_to_pending_signals ( )

◆ set_interrupt_handler()

interrupt_handler set_interrupt_handler ( const volatile interrupt_handler h,
bool  restart_syscalls 
)

◆ set_signal_handler() [1/2]

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().

◆ set_signal_handler() [2/2]

sig_handler* set_signal_handler ( int  sig,
sig_handler handler,
bool  restart_syscalls 
)

Variable Documentation

◆ can_interrupt

std::atomic<bool> can_interrupt {false}

Definition at line 69 of file sighandlers.cc.

Referenced by interpreter::initialize(), and interpreter::recover_from_exception().

◆ pipe_handler_error_count

int pipe_handler_error_count = 0

Definition at line 66 of file sighandlers.cc.

◆ Vdebug_on_interrupt