Skip to content

closeAfterSpawningProcess can double-close file descriptors #159

@jakepetroules

Description

@jakepetroules

The safelyCloseMultiple function assumes all 6 fds are unique, but the same underlying FileDescriptor could be wrapped in multiple IODescriptor instances.

Subprocess should detect such invalid input and produce an error if the same fd is given multiple times with closeAfterSpawningProcess set to true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions