signal handling example: SIGALRM and SIGINT