The following program takes one argument: the number of seconds to count down. The program then blocks the SIGINT signal, performs the count down, and then unblocks SIGINT. Before unblocking, the program prints whether there is a pending SIGINT signal that will be delivered once the signal is unblocked.
The program demonstrates the following system and library calls: