-
Notifications
You must be signed in to change notification settings - Fork 20.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/geth: fix js unclean shutdown #22302
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for fixing this old issue, after having seen the fix, I was finally able to repro the issue and then confirm that the fix fixes it!
|
||
go func() { | ||
<-abort | ||
stack.Wait() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I think the fix would be even better if, os.Exit(0)
were replaced by console.Stop(false)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
so,if I use geth1.10.4,the ctrl+c always shut down Geth cleanly,at anytime? |
Signed-off-by: meows <[email protected]>
This PR is a fix for #16506