Open
Description
Describe the bug
A simple call to run
results in "Fatal error: FileDescriptor 3 was not closed" on Windows.
To Reproduce
The following main program:
let _ = try await run(.path(#"C:\tmp\Hello.exe"#))
calls the program "Hello.exe" which has the following code:
print("hello")
Expected behavior
Expected is that Hello.exe
runs, prints "hello" and no error occurs.
Environment:
- Windows 11
- Swift version 6.1.2 (swift-6.1.2-RELEASE), Target: x86_64-unknown-windows-msvc
- swift-subprocess 80bd50f from 2025-06-13
Additional context
It might have something to do with #72.