antirez/redis — pull request #1637 by mattsta (2014-03-27 02:35:15+00:00)
Title: Add SIGINT handler

When we CTRL-C from a foreground redis-server, it should shutdown cleanly instead of just exiting immediately.

The slightly obtuse switch statement in the signal handler preserves the original log output.