sigset() example
fprintf( stderr, "\nInterrupt (code=%d, i=%d)\n", code, i );
if (signal( SIGINT , quit ) == SIG_IGN) exit( 1 );
if (signal( SIGTERM, quit ) == SIG_IGN) exit( 2 );
if (signal( SIGQUIT, quit ) == SIG_IGN) exit( 3 );
if( i++ % 5000000 == 0 ) putc( '.', stderr );