Teslafreak Posted June 6, 2009 Posted June 6, 2009 Is there a way to handle signals? For example, I am writing a console app, and I need it to run a function before closing if someone issues it Ctrl+C. I believe this is SIGINT, and I found some references to sending it to processes, but can't find anything about handling it. Any ideas?
rover Posted June 7, 2009 Posted June 7, 2009 Is there a way to handle signals? For example, I am writing a console app, and I need it to run a function before closing if someone issues it Ctrl+C. I believe this is SIGINT, and I found some references to sending it to processes, but can't find anything about handling it. Any ideas?Teslafreak I've posted an example of the SetConsoleCtrlHandler API in the Examples forum Console app 'OnAutoItExit' callback function enjoy I see fascists...
Teslafreak Posted June 7, 2009 Author Posted June 7, 2009 Teslafreak I've posted an example of the SetConsoleCtrlHandler API in the Examples forum Console app 'OnAutoItExit' callback function enjoy Awesome, i'll have a look. Thanks!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now