Utah Raster Toolkit  9999-git
URT Development version (post-3.1b)
Functions
sig.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void sig_setup ()
 
void sig_unblock ()
 
void sig_block ()
 

Function Documentation

void sig_block ( )

Definition at line 63 of file sig.c.

63  {
64  sigsetmask( 0xffffffff );
65 }
void sig_setup ( )

Definition at line 30 of file sig.c.

30  {
31  static struct sigvec vec = { sig_handler, 0xffffffff, 0 };
32 
33  sigvec( SIGHUP, & vec, 0 );
34  sigvec( SIGINT, & vec, 0 );
35  sigvec( SIGQUIT, & vec, 0 );
36  sigvec( SIGILL, & vec, 0 );
37  sigvec( SIGTRAP, & vec, 0 );
38  sigvec( SIGIOT, & vec, 0 );
39  sigvec( SIGEMT, & vec, 0 );
40  sigvec( SIGFPE, & vec, 0 );
41  /*sigvec( SIGBUS, & vec, 0 );*/
42  sigvec( SIGSEGV, & vec, 0 );
43  sigvec( SIGSYS, & vec, 0 );
44  sigvec( SIGPIPE, & vec, 0 );
45  sigvec( SIGALRM, & vec, 0 );
46  sigvec( SIGTERM, & vec, 0 );
47  sigvec( SIGURG, & vec, 0 );
48  sigvec( SIGCHLD, & vec, 0 );
49  sigvec( SIGTTIN, & vec, 0 );
50  sigvec( SIGTTOU, & vec, 0 );
51  sigvec( SIGIO, & vec, 0 );
52  sigvec( SIGXCPU, & vec, 0 );
53  sigvec( SIGXFSZ, & vec, 0 );
54  sigvec( SIGVTALRM, & vec, 0 );
55  sigvec( SIGPROF, & vec, 0 );
56  sigvec( SIGWINCH, & vec, 0 );
57 }
int sig_handler(int sig, int code, struct sigcontext *scp)
Definition: sig.c:22
void sig_unblock ( )

Definition at line 59 of file sig.c.

59  {
60  sigsetmask( 0 );
61 }