metabahn/pakyow — pull request #41 by tessellator (2012-02-10 20:28:55+00:00)
Title: Graceful HTTP Server Shutdown on Interrupt

I added a method to shut down the HTTP server gracefully when a Ctrl+C is received after calling 'pakyow server'. This removes the need for having to use 'kill -9 {pid}' while developing.

I manually tested it with thin, mongrel, and WEBrick, but there is also a case for future (unknown) server types.