GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
sighandlers.h File Reference
#include <atomic>
#include "octave-config.h"
#include "child-list.h"

Go to the source code of this file.

Classes

struct  interrupt_handler
 

Typedefs

typedef void sig_handler(int)
 

Functions

interrupt_handler catch_interrupts ()
 
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=true)
 
sig_handlerset_signal_handler (const char *signame, sig_handler *h, bool restart_syscalls=true)
 
sig_handlerset_signal_handler (int sig, sig_handler *h, bool restart_syscalls=true)
 

Variables

std::atomic< bool > can_interrupt
 
int pipe_handler_error_count
 
bool Vdebug_on_interrupt
 

Typedef Documentation

◆ sig_handler

typedef void sig_handler(int)

Definition at line 48 of file sighandlers.h.

Function Documentation

◆ catch_interrupts()

◆ 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 = true 
)

◆ set_signal_handler() [1/2]

sig_handler* set_signal_handler ( const char *  signame,
sig_handler h,
bool  restart_syscalls = true 
)

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 h,
bool  restart_syscalls = true 
)

Variable Documentation

◆ can_interrupt

std::atomic<bool> can_interrupt
extern

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
extern

Definition at line 66 of file sighandlers.cc.

◆ Vdebug_on_interrupt