Skip to content

Commit

Permalink
Merge pull request #4024 from jen20/signal-notify-once
Browse files Browse the repository at this point in the history
Only call signal.Notify once during agent startup
  • Loading branch information
mkeeler authored Apr 20, 2018
2 parents 9dff3b3 + 96f8718 commit 63250c5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion command/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 63250c5

Please sign in to comment.