Merge pull request #4024 from jen20/signal-notify-once

Only call signal.Notify once during agent startup
This commit is contained in:
Matt Keeler 2018-04-20 12:37:01 -04:00 committed by GitHub
commit 3026ac4198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -385,7 +385,6 @@ func (c *cmd) run(args []string) int {
// wait for signal
signalCh := make(chan os.Signal, 10)
signal.Notify(signalCh, os.Interrupt, syscall.SIGTERM, syscall.SIGHUP)
signal.Notify(signalCh, os.Interrupt, syscall.SIGTERM, syscall.SIGHUP, syscall.SIGPIPE)
for {