Skip to content

Don't reopen redirected standard handles on Windows #1459

@SaschaWillems

Description

@SaschaWillems

From #1396:

If the calling process has redirected a standard handle (e.g. vulkan_samples.exe sample msaa > out.log), then reopening it will detach it from the file/pipe and connect it to the console instead. We don't want to do that.

Instead, the type of the file should be tested before attaching the parent console. If it's already a disk file or a pipe, then we want to leave it alone.

Something we should fix in a broader rework on how we handle command line in- and output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions