mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 05:23:04 +00:00
491826ddbc
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.
11 lines
128 B
Go
11 lines
128 B
Go
// +build !windows
|
|
|
|
package agent
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
var forwardSignals = []os.Signal{os.Interrupt, syscall.SIGTERM}
|