mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
Merge pull request #1418 from fjl/one-interrupt
cmd/utils: fix interrupt handling to actually see subsequent interrupts
This commit is contained in:
commit
45618d5f6b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue