Update panicwrap to pass through all interrupt signals
This commit is contained in:
parent
9ab7cab19e
commit
557375f2a2
1
main.go
1
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)
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue