Commit 236aed11 by Carl Bergquist

Merge pull request #5255 from dakerfp/patch-1

Unify signal registration in a single syscall.
parents 3d7facf6 48e4de82
...@@ -118,9 +118,7 @@ func listenToSystemSignels() { ...@@ -118,9 +118,7 @@ func listenToSystemSignels() {
signalChan := make(chan os.Signal, 1) signalChan := make(chan os.Signal, 1)
code := 0 code := 0
signal.Notify(signalChan, os.Interrupt) signal.Notify(signalChan, os.Interrupt, os.Kill, syscall.SIGTERM)
signal.Notify(signalChan, os.Kill)
signal.Notify(signalChan, syscall.SIGTERM)
select { select {
case sig := <-signalChan: case sig := <-signalChan:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment