Skip to content

Commit

Permalink
Only exit on interrupt or kill
Browse files Browse the repository at this point in the history
  • Loading branch information
johnabass committed Nov 22, 2017
1 parent d550953 commit e751791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/talaria/talaria.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func talaria(arguments []string) int {
}
}()

signal.Notify(signals)
signal.Notify(signals, os.Interrupt, os.Kill)
s := <-signals
infoLog.Log(logging.MessageKey(), "received signal, shutting down", "signal", s)
close(shutdown)
Expand Down

0 comments on commit e751791

Please sign in to comment.