From 279a72905d8b5ac79597e509ca024ae6b5a214b3 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Wed, 17 Jul 2013 22:43:22 -0400 Subject: [PATCH] catch and cleanup on os.Kill too --- noti/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/noti/main.go b/noti/main.go index fedd313..cfe6017 100644 --- a/noti/main.go +++ b/noti/main.go @@ -25,6 +25,7 @@ func init() { notify.Init("IRC-noti") c := make(chan os.Signal, 1) signal.Notify(c, os.Interrupt) + signal.Notify(c, os.Kill) go func() { for sig := range c { // sig is a ^C, handle it