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
commit 63250c5d43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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