Data source: http://rosettacode.org/wiki/Handle_a_signal
