-
Notifications
You must be signed in to change notification settings - Fork 83
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
CTRL_CLOSE_EVENT #2
Labels
Comments
This issue may be resolved by Go 1.14:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's how to catch
CTRL_CLOSE_EVENT
in Windows (end task or close console window). There was some effort to translate this toSIGTERM
but requires blocking which isn't compatible with thesignal.Notify
model.The right way to stop a service would be
sc stop
ornet stop
and I believe these stop signals are sent during reboot/shutdown, I'll have to double check. If they are this is probably just "interesting" and adding this would help in the case of someone killing the process instead of stopping the service gracefully.The text was updated successfully, but these errors were encountered: