update signal notify

This commit is contained in:
siddontang 2014-11-11 11:09:32 +08:00
parent a5dcdbf6c3
commit 529c158293
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ func main() {
sc := make(chan os.Signal, 1)
signal.Notify(sc,
os.Kill,
os.Interrupt,
syscall.SIGHUP,
syscall.SIGINT,
syscall.SIGTERM,