Fix non-inherited event handle causing wslrelay crash (#40477)
Blue committed
May 11, 2026 at 11:25 UTC
477a6891ec63df1885bdbef993bdf99cd6c1062e
1 file changed
+1
src/windows/wslcsession/WSLCVirtualMachine.cpp
+1
@@ -851,6 +851,7 @@ void WSLCVirtualMachine::LaunchPortRelay()
851
852
wsl::windows::common::SubProcess process{nullptr, cmd.c_str()};
853
process.SetStdHandles(readPipe.get(), writePipe.get(), nullptr);
854
+ process.InheritHandle(m_vmTerminatingEvent.get());
855
process.Start();
856
857
readPipe.release();