use 11 for the panic exit code
This commit is contained in:
parent
bd37f43daa
commit
583e3a5f0b
|
@ -42,7 +42,11 @@ func PanicHandler() {
|
||||||
// When called from a deferred function, debug.PrintStack will include the
|
// When called from a deferred function, debug.PrintStack will include the
|
||||||
// full stack from the point of the pending panic.
|
// full stack from the point of the pending panic.
|
||||||
debug.PrintStack()
|
debug.PrintStack()
|
||||||
os.Exit(2)
|
|
||||||
|
// An exit code of 11 keeps us out of the way of the detailed exitcodes
|
||||||
|
// from plan, and also happens to be the same code as SIGSEGV which is
|
||||||
|
// roughly the same type of condition that causes most panics.
|
||||||
|
os.Exit(11)
|
||||||
}
|
}
|
||||||
|
|
||||||
const pluginPanicOutput = `
|
const pluginPanicOutput = `
|
||||||
|
|
Loading…
Reference in New Issue