interrupt handlers now ordered
This commit is contained in:
@@ -12,7 +12,6 @@ func InitJsConsole(ethereum *eth.Ethereum) {
|
||||
go repl.Start()
|
||||
utils.RegisterInterrupt(func(os.Signal) {
|
||||
repl.Stop()
|
||||
ethereum.Stop()
|
||||
})
|
||||
}
|
||||
|
||||
|
@@ -11,6 +11,8 @@ var logger = ethlog.NewLogger("CLI")
|
||||
func main() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
|
||||
utils.HandleInterrupt()
|
||||
|
||||
// precedence: code-internal flag default < config file < environment variables < command line
|
||||
Init() // parsing command line
|
||||
utils.InitConfig(ConfigFile, Datadir, Identifier, "ETH")
|
||||
|
Reference in New Issue
Block a user