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
@@ -148,6 +148,9 @@ impl<'a> Suspended<'a> {
startup.lpAttributeList = attributes.buffer.as_mut_ptr().cast();
// Keep both the handle array and the owning pipe ends alive across
// CreateProcessW. No arbitrary inheritable Host handle is admitted.
let io = io
.map(crate::extension_stdio::ChildIo::inherit)
.transpose()?;
let inherited = io.as_ref().map(|value| value.handles());
if let Some(handles) = &inherited {
if unsafe {