diff --git a/main.go b/main.go index f83d084c5..9ee3c7fb6 100644 --- a/main.go +++ b/main.go @@ -60,6 +60,7 @@ func realMain() int { wrapConfig.Handler = panicHandler(logTempFile) wrapConfig.Writer = io.MultiWriter(logTempFile, logWriter) wrapConfig.Stdout = outW + wrapConfig.IgnoreSignals = interruptSignals exitStatus, err := panicwrap.Wrap(&wrapConfig) if err != nil { fmt.Fprintf(os.Stderr, "Couldn't start Terraform: %s", err) diff --git a/signal_unix.go b/signal_unix.go index 9f22ecf10..65669a746 100644 --- a/signal_unix.go +++ b/signal_unix.go @@ -7,4 +7,7 @@ import ( "syscall" ) -var interruptSignals []os.Signal = []os.Signal{os.Interrupt, syscall.SIGTERM} +var interruptSignals []os.Signal = []os.Signal{ + os.Interrupt, + syscall.SIGTERM, +}