Skip to content

Commit 82ace3e

Browse files
committed
fix: remove CREATE_NEW_PROCESS_GROUP flag for proper Ctrl-C handling
CREATE_NEW_PROCESS_GROUP prevented GenerateConsoleCtrlEvent from working, causing graceful shutdown failures. Removed to enable proper signal handling.
1 parent ee582a8 commit 82ace3e

File tree

1 file changed

+3
-3
lines changed
  • src-tauri/src/core/utils/extensions/inference_llamacpp_extension

1 file changed

+3
-3
lines changed

src-tauri/src/core/utils/extensions/inference_llamacpp_extension/server.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ pub async fn load_llama_model(
167167
command.stderr(Stdio::piped());
168168
#[cfg(all(windows, target_arch = "x86_64"))]
169169
{
170-
use std::os::windows::process::CommandExt;
170+
// use std::os::windows::process::CommandExt;
171171
const CREATE_NO_WINDOW: u32 = 0x0800_0000;
172-
const CREATE_NEW_PROCESS_GROUP: u32 = 0x0000_0200;
173-
command.creation_flags(CREATE_NO_WINDOW | CREATE_NEW_PROCESS_GROUP);
172+
// const CREATE_NEW_PROCESS_GROUP: u32 = 0x0000_0200;
173+
command.creation_flags(CREATE_NO_WINDOW);
174174
}
175175

176176
// Spawn the child process

0 commit comments

Comments
 (0)