open-consul/agent/signal_unix.go
R.B. Boyer a2e240f46f
cli: forward SIGTERM to child process of 'lock' and 'watch' subcommands (#4737)
cli: forward SIGTERM to child process of 'lock' and 'watch' subcommands on unix

This also removes the signal handler for SIGKILL as it's impossible to receive these signals.
2018-10-02 15:57:21 -05:00

11 lines
128 B
Go

// +build !windows
package agent
import (
"os"
"syscall"
)
var forwardSignals = []os.Signal{os.Interrupt, syscall.SIGTERM}