Browse Source

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

Only call signal.Notify once during agent startup
mrktfix18
Matt Keeler 7 years ago committed by GitHub
parent
commit
63250c5d43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      command/agent/agent.go

1
command/agent/agent.go

@ -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 {

Loading…
Cancel
Save