cmd/utils, internal/debug: show all stacks for 10x Ctrl-C induced panic

Go 1.6 only prints stacks for the current goroutine by default,
but for this panic we want to see all of them.
This commit is contained in:
Felix Lange
2016-03-12 00:39:45 +01:00
parent cafdd5931e
commit c1343c8872
3 changed files with 53 additions and 1 deletions

View File

@ -29,6 +29,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/internal/debug"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/node"
@ -130,7 +131,7 @@ func StartNode(stack *node.Node) {
}
}
glog.V(logger.Error).Infof("Force quitting: this might not end so well.")
panic("boom")
debug.LoudPanic("boom")
}()
}