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

Better signal handling #1488

Merged
merged 2 commits into from
Jun 24, 2022
Merged

Better signal handling #1488

merged 2 commits into from
Jun 24, 2022

Conversation

leaanthony
Copy link
Member

Noticed ctrl-c isn't handled and leads to ungraceful shutdown.

@leaanthony leaanthony requested a review from stffabi June 23, 2022 11:12
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 23, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: c221bc9
Status:⚡️  Build in progress...

View logs

Copy link
Collaborator

@stffabi stffabi left a comment

Choose a reason for hiding this comment

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

Nice improvement 👍. LGTM, just a minor comment if we need the waitgroup.


m.wg.Add(1)
var wg sync.WaitGroup
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems like we are not calling wg.Wait() anywhere. Are we maybe missing that or could we just remove the waitgroup completely?

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like it was left in after the simplification. I'll remove it

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.

2 participants