Merge PR #4884: Fix standalone execution
This commit is contained in:
parent
e4c8bd72b7
commit
8f51fb39cb
1
.pending/bugfixes/tendermint/_4879-Don-t-terminat
Normal file
1
.pending/bugfixes/tendermint/_4879-Don-t-terminat
Normal file
@ -0,0 +1 @@
|
||||
#4879 Don't terminate the process immediately after startup when run in standalone mode.
|
||||
@ -89,7 +89,6 @@ func startStandAlone(ctx *Context, appCreator AppCreator) error {
|
||||
cmn.Exit(err.Error())
|
||||
}
|
||||
|
||||
// wait forever
|
||||
cmn.TrapSignal(ctx.Logger, func() {
|
||||
// cleanup
|
||||
err = svr.Stop()
|
||||
@ -97,6 +96,10 @@ func startStandAlone(ctx *Context, appCreator AppCreator) error {
|
||||
cmn.Exit(err.Error())
|
||||
}
|
||||
})
|
||||
|
||||
// run forever (the node will not be returned)
|
||||
select {}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user