Repository navigation
Wait before shutdown to avoid the crash - #593
Conversation
| long: chain | ||
| help: Set the blockchain type out of solo, solo_authority, tendermint, cuckoo, blake_pow, husky or a path to chain scheme file. | ||
| takes_value: true | ||
| - wait-before-shutdown: |
There was a problem hiding this comment.
I don't think we need a command line option here because this PR is just a hotfix for the crash. Just use a hardcoded constant which is large enough to avoid the crash.
There was a problem hiding this comment.
It is to make it easy to test.
I'm not sure waiting 1 second is enough to avoid the crash. It was the experimental result on my machine.
There was a problem hiding this comment.
I think we need internal command line options to help test and debug.
There was a problem hiding this comment.
It is not a good idea to expose a command line option that is used only for test & debug purposes. What about adding an environment variable instead? Users don't know what environment variables exist, but we can use them for test & debug purposes.
There was a problem hiding this comment.
Okay. I agree with you. I'll change it.
This patch is the hotfix for #348. I can't find the exact reason for the SIGINT yet, but this patch fixes the crash.
|
@kseo PR updated. |
This patch is the hotfix for #348.
I can't find the exact reason for the SIGINT yet, but this patch fixes
the crash.