fix(host): 跨进程启动串行化可继承管道窗口

This commit is contained in:
2026-09-09 05:51:47 +08:00
parent 57acbc0e32
commit b3b4feb2db
6 changed files with 84 additions and 9 deletions
+5 -1
View File
@@ -325,7 +325,11 @@ impl CoreSupervisor {
use std::os::windows::process::CommandExt;
command.creation_flags(0x08000000); // CREATE_NO_WINDOW
}
let child = command.group_spawn().map_err(|_| "CORE_SPAWN_FAILED")?;
let child = {
#[cfg(windows)]
let _creation = crate::process_creation::lock()?;
command.group_spawn().map_err(|_| "CORE_SPAWN_FAILED")?
};
let mut session = Session {
child,
lifetime: Arc::new(Mutex::new(None)),