visionmedia/go-gracefully — pull request #3 by joeshaw (2014-07-03 00:44:09+00:00)
Title: run goroutine after first read from channel

Fixes a race where the goroutine could receive the signal first, treat
it as the second signal, and kill the program.

Fixes #2.