Merge pull request #4024 from jen20/signal-notify-once
Only call signal.Notify once during agent startup
This commit is contained in:
commit
3026ac4198
|
@ -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…
Reference in New Issue