diff --git a/cli.go b/cli.go index c5790ffe7..bc8441bc9 100644 --- a/cli.go +++ b/cli.go @@ -490,7 +490,7 @@ func (i *CLI) signalHandler() { signal.Notify(signalChan, syscall.SIGTERM, syscall.SIGINT, syscall.SIGUSR1, syscall.SIGTTIN, syscall.SIGTTOU, - syscall.SIGWINCH) + syscall.SIGUSR2) for { select { @@ -508,8 +508,8 @@ func (i *CLI) signalHandler() { case syscall.SIGTTOU: i.logger.Info("SIGTTOU received, removing processor from pool") i.ProcessorPool.Decr() - case syscall.SIGWINCH: - i.logger.Warn("SIGWINCH received, toggling graceful shutdown and pause") + case syscall.SIGUSR2: + i.logger.Warn("SIGUSR2 received, toggling graceful shutdown and pause") i.ProcessorPool.GracefulShutdown(true) case syscall.SIGUSR1: i.logProcessorInfo("received SIGUSR1")