11-27-2023 09:57 AM
Is there any way of reacting to the event where a user presses Ctrl-C in the windows terminal?
I have tried using the EVENT_END_TASK and the InstallMainCallback function, and this does react to when i try to close the application via the taskbar button, however it does not seem to react when i close the program via the windows terminal. Is there any way of detecting this event?
11-27-2023 10:10 AM
Use signal(SIGTERM, ...);
11-27-2023 10:15 AM
I've tried this also, but it does not seem to work either
11-27-2023 10:32 AM
Sorry, I haven't tried it in forever on Windows. It works fine on Linux though... 😆
Have you tried it with a callback function or with SIG_IGN ?