Navigation

Operators and Keywords

Function List:

C++ API

sighandlers.cc File Reference

#include <cstdlib>
#include <iostream>
#include <new>
#include <sys/types.h>
#include <unistd.h>
#include "cmd-edit.h"
#include "oct-syscalls.h"
#include "quit.h"
#include "debug.h"
#include "defun.h"
#include "error.h"
#include "input.h"
#include "load-save.h"
#include "oct-map.h"
#include "pager.h"
#include "pt-bp.h"
#include "pt-eval.h"
#include "sighandlers.h"
#include "sysdep.h"
#include "syswait.h"
#include "toplev.h"
#include "utils.h"
#include "variables.h"
Include dependency graph for sighandlers.cc:

Classes

class  pid_equal

Defines

#define BADSIG   (void (*)(int))-1
#define BLOCK_SIGNAL(sig, nvar, ovar)
#define BLOCK_CHILD(nvar, ovar)   BLOCK_SIGNAL (SIGCHLD, nvar, ovar)
#define UNBLOCK_CHILD(ovar)   gnulib::sigprocmask (SIG_SETMASK, &ovar, 0)
#define OCL_REP   octave_child_list::octave_child_list_rep

Functions

void octave_signal_handler (void)
sig_handleroctave_set_signal_handler (int sig, sig_handler *handler, bool restart_syscalls)
octave_interrupt_handler octave_catch_interrupts (void)
octave_interrupt_handler octave_ignore_interrupts (void)
octave_interrupt_handler octave_set_interrupt_handler (const volatile octave_interrupt_handler &h, bool restart_syscalls)
void install_signal_handlers (void)
 DEFUN (SIG, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} SIG ()\n\ Return a structure containing Unix signal names and their defined values.\n\ @end deftypefn")
 DEFUN (debug_on_interrupt, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} debug_on_interrupt ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} debug_on_interrupt (@var{new_val})\n\ Query or set the internal variable that controls whether Octave will try\n\ to enter debugging mode when it receives an interrupt signal (typically\n\ generated with @kbd{C-c}). If a second interrupt signal is received\n\ before reaching the debugging mode, a normal interrupt will occur.\n\ @end deftypefn")
 DEFUN (sighup_dumps_octave_core, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} sighup_dumps_octave_core ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} sighup_dumps_octave_core (@var{new_val})\n\ Query or set the internal variable that controls whether Octave tries\n\ to save all current variables to the file \"octave-core\" if it receives\n\ a hangup signal.\n\ @end deftypefn")
 DEFUN (sigterm_dumps_octave_core, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} sigterm_dumps_octave_core ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} sigterm_dumps_octave_core (@var{new_val})\n\ Query or set the internal variable that controls whether Octave tries\n\ to save all current variables to the file \"octave-core\" if it receives\n\ a terminate signal.\n\ @end deftypefn")

Variables

int pipe_handler_error_count = 0
bool can_interrupt = false

Define Documentation

#define BADSIG   (void (*)(int))-1
#define BLOCK_CHILD (   nvar,
  ovar 
)    BLOCK_SIGNAL (SIGCHLD, nvar, ovar)
#define BLOCK_SIGNAL (   sig,
  nvar,
  ovar 
)
Value:
do \
    { \
      gnulib::sigemptyset (&nvar); \
      gnulib::sigaddset (&nvar, sig); \
      gnulib::sigemptyset (&ovar); \
      gnulib::sigprocmask (SIG_BLOCK, &nvar, &ovar); \
    } \
  while (0)
#define UNBLOCK_CHILD (   ovar  )     gnulib::sigprocmask (SIG_SETMASK, &ovar, 0)

Function Documentation

DEFUN ( SIG  ,
args   
)
DEFUN ( sigterm_dumps_octave_core  ,
args  ,
nargout   
)
DEFUN ( debug_on_interrupt  ,
args  ,
nargout   
)
DEFUN ( sighup_dumps_octave_core  ,
args  ,
nargout   
)
void install_signal_handlers ( void   ) 
octave_interrupt_handler octave_catch_interrupts ( void   ) 
octave_interrupt_handler octave_ignore_interrupts ( void   ) 
octave_interrupt_handler octave_set_interrupt_handler ( const volatile octave_interrupt_handler h,
bool  restart_syscalls 
)
sig_handler* octave_set_signal_handler ( int  sig,
sig_handler handler,
bool  restart_syscalls 
)
void octave_signal_handler ( void   ) 

Variable Documentation

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines