Skip to content
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

Merged
merged 2 commits into from
Feb 15, 2021
Merged

Conversation

alex347
Copy link
Contributor

@alex347 alex347 commented Feb 10, 2021

This PR is a fix for #16506

Copy link
Contributor

@holiman holiman left a 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()
Copy link
Contributor

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@holiman holiman merged commit 7778780 into ethereum:master Feb 15, 2021
@holiman holiman added this to the 1.10.0 milestone Feb 15, 2021
filipescuc pushed a commit to EthereumGenesys/go-ethereum that referenced this pull request Mar 2, 2021
@JaneYork
Copy link

JaneYork commented Jun 29, 2021

so,if I use geth1.10.4,the ctrl+c always shut down Geth cleanly,at anytime?

AusIV pushed a commit to NoteGio/go-ethereum that referenced this pull request Jul 12, 2021
Signed-off-by: meows <b5c6@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants