36490c75e93a0bc0e276d7dd1dede7f6be5d40f4
[gapil.git] / unreliable_sig.c
1 int sig_handler();            /* handler function */
2 int main()
3 {
4     ...
5     signal(SIGINT, sig_handler);  /* establish handler */
6     ...
7 }
8
9 int sig_handler() 
10 {
11     signal(SIGINT, sig_handler);  /* restablish handler */
12     ...                           /* process signal */
13 }