signal: this example comes from thegeekstuff

http://www.thegeekstuff.com/2012/03/catch-signals-sample-c-code/

Signed-off-by: Fudong Bai <fudongbai@gmail.com>