Skip to content

Fatal error "FileDescriptor 3 was not closed" on Windows #84

@stefanspringer1

Description

@stefanspringer1

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.

Metadata

Metadata

Assignees

Labels

blockerShow stopping issues for 0.0.1bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions