1
0
Fork 0
mirror of https://github.com/vbatts/flaming-happiness.git synced 2025-01-15 10:10:09 +00:00

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

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