mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2025-02-22 07:40:00 +00:00
Windows: reactive sigint handler after each Ctrl-C (#736)
This commit is contained in:
parent
437e77855a
commit
53dbba7695
1 changed files with 5 additions and 0 deletions
|
@ -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> ");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue