finished exercise 3.2: Signal Handlers: sig_handlers.c