aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-07-07 02:05:54 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-07-07 02:05:54 +0800
commit45618d5f6bd1cd5e046fe0f0e07746b3af4cf55a (patch)
tree76a217a9f541f7a335f5636fd2843eddcdf8f712
parent6220707e0392d77930fa987c5388cbe12c8bb0f8 (diff)
parentd4c2e9de32b79333ffc3a8f9d17dc11db21fd85f (diff)
downloaddexon-45618d5f6bd1cd5e046fe0f0e07746b3af4cf55a.tar.gz
dexon-45618d5f6bd1cd5e046fe0f0e07746b3af4cf55a.tar.zst
dexon-45618d5f6bd1cd5e046fe0f0e07746b3af4cf55a.zip
Merge pull request #1418 from fjl/one-interrupt
cmd/utils: fix interrupt handling to actually see subsequent interrupts
-rw-r--r--cmd/utils/cmd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go
index 33a6c1cb2..20fc57f92 100644
--- a/cmd/utils/cmd.go
+++ b/cmd/utils/cmd.go
@@ -132,7 +132,7 @@ func StartEthereum(ethereum *eth.Ethereum) {
defer signal.Stop(sigc)
<-sigc
glog.V(logger.Info).Infoln("Got interrupt, shutting down...")
- ethereum.Stop()
+ go ethereum.Stop()
logger.Flush()
for i := 10; i > 0; i-- {
<-sigc