lestrrat/peco — pull request #52 by albrow (2014-06-14 04:00:54+00:00)
Title: Manually catch SIGINT and SIGTERM signals and close gracefully. Fixes #51

I tested on my mac and it worked perfectly when I killed peco with the kill or killall command. Feel free to shift the code around if needed. I wasn't sure of the best place to put my additions. Also, I have no way of checking if this works on windows, so I would appreciate someone else testing it.