GRASS GIS 7 Programmer's Manual  7.0.5(2016)-r00000
sighold.c
Go to the documentation of this file.
1 
14 #include <signal.h>
15 #include <grass/config.h>
16 
24 int M__hold_signals(int hold)
25 {
26  RETSIGTYPE (*sig)() = hold ? SIG_IGN : SIG_DFL;
27 
28  signal(SIGINT, sig);
29 
30 #ifndef __MINGW32__
31  signal(SIGQUIT, sig);
32 #endif
33 
34 #ifdef SIGTSTP
35  signal(SIGTSTP, sig);
36 #endif
37 
38  return 0;
39 }
int M__hold_signals(int hold)
Hold signals.
Definition: sighold.c:24