Commit d4c2e9de authored by Felix Lange's avatar Felix Lange

cmd/utils: fix interrupt handling to actually see subsequent interrupts

parent 5615fc47
...@@ -132,7 +132,7 @@ func StartEthereum(ethereum *eth.Ethereum) { ...@@ -132,7 +132,7 @@ func StartEthereum(ethereum *eth.Ethereum) {
defer signal.Stop(sigc) defer signal.Stop(sigc)
<-sigc <-sigc
glog.V(logger.Info).Infoln("Got interrupt, shutting down...") glog.V(logger.Info).Infoln("Got interrupt, shutting down...")
ethereum.Stop() go ethereum.Stop()
logger.Flush() logger.Flush()
for i := 10; i > 0; i-- { for i := 10; i > 0; i-- {
<-sigc <-sigc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment