Windows: reactive sigint handler after each Ctrl-C

This commit is contained in:
mgroeber9110 2023-04-02 22:04:44 +02:00
parent d8d4e865cd
commit 30ed065da1

View file

@ -368,6 +368,11 @@ int main(int argc, char ** argv) {
// potentially set color to indicate we are taking user input
set_console_color(con_st, CONSOLE_COLOR_USER_INPUT);
#if defined (_WIN32)
// Windows: must reactivate sigint handler after each signal
signal(SIGINT, sigint_handler);
#endif
if (params.instruct) {
printf("\n> ");
}