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

svc/windows: support closing via context.Done() #15

Merged
merged 1 commit into from
Feb 1, 2021

Conversation

jehiah
Copy link
Contributor

@jehiah jehiah commented Dec 1, 2020

This provides support for closing a windows service, and a program running on windows via context.Done() matching non-windows functionality from #13

Closes #14

@jehiah
Copy link
Contributor Author

jehiah commented Dec 1, 2020

@judwhite oops oversight on my part for not including this in the first round - I don't have an environment to test this from so flying a little blind here, but from a read of the code i think this will work for running on windows (easy case) and running as a service (a few more moving parts).

@jehiah
Copy link
Contributor Author

jehiah commented Dec 22, 2020

@judwhite let me know if you have any feedback on this - or if you notice anything i need to adjust.

@judwhite
Copy link
Owner

@jehiah I think it looks good. I'm going to do some testing and hopefully get it merged/tagged in the next couple days. Thanks for the ping.

@jehiah
Copy link
Contributor Author

jehiah commented Jan 11, 2021

Hey @judwhite i want to follow up on this thread - Is there any additional work i can do here to help?

@judwhite
Copy link
Owner

judwhite commented Feb 1, 2021

@jehiah I'm going to add some tests before tagging this. Thanks for the change, I apologize for the delay

@judwhite judwhite merged commit 4b193fa into judwhite:master Feb 1, 2021
@judwhite judwhite mentioned this pull request Feb 1, 2021
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.

Add Context.Done() handling for Windows Service
2 participants