srinikom/leveldb-server — pull request #1 by technoweenie (2011-11-23 18:37:19+00:00)
Title: Graceful shutdown

I tried to make the shutdown a little more graceful.

* Catch KeyboardInterrupt to initiate the shutdown. This could probably be easily extended to listen for unix signals too.
* Wait for workers to finish a command. Though in practice, it doesn't seem to work all that well. The client doesn't seem to receive the response. I put a sleep in there, but it doesn't seem like enough time?
* I added some crap to gitignore.