aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum
diff options
context:
space:
mode:
Diffstat (limited to 'ethereum')
-rw-r--r--ethereum/cmd.go1
-rw-r--r--ethereum/main.go2
2 files changed, 2 insertions, 1 deletions
diff --git a/ethereum/cmd.go b/ethereum/cmd.go
index 0e9c2be8c..2dfd54666 100644
--- a/ethereum/cmd.go
+++ b/ethereum/cmd.go
@@ -12,7 +12,6 @@ func InitJsConsole(ethereum *eth.Ethereum) {
go repl.Start()
utils.RegisterInterrupt(func(os.Signal) {
repl.Stop()
- ethereum.Stop()
})
}
diff --git a/ethereum/main.go b/ethereum/main.go
index bbbaf5541..800486e56 100644
--- a/ethereum/main.go
+++ b/ethereum/main.go
@@ -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")