catch and cleanup on os.Kill too

This commit is contained in:
Vincent Batts 2013-07-17 22:43:22 -04:00
parent b4ae9415bb
commit 279a72905d
1 changed files with 1 additions and 0 deletions

View File

@ -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