-
Notifications
You must be signed in to change notification settings - Fork 1.6k
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
How to determine that the program will be stopped? #115
Comments
Relly simple code in go to test it package main import ( func main() { It works when yourself push Ctrl-C, but I do not see a message about closing when working through the wrapper |
Modify program package main import ( func main() { File not created at service stop. |
Most likely it's a Windows service specifics. |
Hello.
There is a console program. How do I intercept the event of closure and perform some action on the freeing of resources?
Interception SIGINT does not work.
Messages from log:
2016-05-29 11:27:56 - Send SIGINT 8368
2016-05-29 11:27:56 - SIGINT to 8368 failed - Killing as fallback
I think problem in 'AttachConsole'.
OS: Windows 10 x64
The text was updated successfully, but these errors were encountered: