Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
interrupt.c File Reference
#include "extern.h"

Go to the source code of this file.

Functions

void exit_proc (int arg1, void *arg2)
 
int clearInterrupt ()
 
int isInterrupt ()
 
void sig_handler (int sig)
 
int initSignals ()
 

Variables

int control_c_hit = 0
 
tcflag_t old_lflag
 
cc_t old_vtime
 
struct termios term
 
int history_already_written
 
int lp_ppid
 
int logging
 

Function Documentation

int clearInterrupt ( void  )

Definition at line 144 of file interrupt.c.

void exit_proc ( int  arg1,
void *  arg2 
)

Exit func whether from user command or SIGNAL.
Tell 'xgraphic' and 'helper' tasks to exit.
reset terminal back to normal.

Returns
void

Definition at line 78 of file interrupt.c.

int initSignals ( void  )

Definition at line 237 of file interrupt.c.

int isInterrupt ( void  )

Definition at line 152 of file interrupt.c.

void sig_handler ( int  sig)

Signal catcher for HUP, KILL, INIT & TERM

Returns
1

Definition at line 168 of file interrupt.c.

Variable Documentation

int control_c_hit = 0

Definition at line 61 of file interrupt.c.

int history_already_written

Definition at line 90 of file linuxpops.c.

int logging

Definition at line 77 of file linuxpops.c.

int lp_ppid

Definition at line 89 of file linuxpops.c.

tcflag_t old_lflag

Definition at line 66 of file linuxpops.c.

cc_t old_vtime

Definition at line 67 of file linuxpops.c.

struct termios term

Definition at line 68 of file linuxpops.c.