title: Capturing kill code of go process?
body: <p>I'm trying to write a test that would drive out functionality for kill commands. To do this, I need the target of my test (a very simple go http server - <a href="https://github.com/jadekler/git-grunt-gostop/blob/master/test/fixtures/gostop_basic.go" rel="nofollow">https://github.com/jadekler/git-grunt-gostop/blob/master/test/fixtures/gostop_basic.go</a>) to differentiate between having been killing with -2 vs -9. Is there some way to do this? It seems as though go's defer doesn't happen regardless of -2 vs -9, which was my first try. Subsequent research has not been enlightening.</p>
  
  <p>Thanks for any suggestions!</p>