Skip to content

Rust spawn sets bInheritHandles to true #389

@caesay

Description

@caesay

If the application has open handles to files inside the current directory when it starts Update.exe, those handles will be inherited by Update.exe and it will not be able to perform the update.

We could enumerate our own open handles, checking if they correspond to something in current and close them, or we can use CreateProcessW directly on Windows, or both.

Also see:

Might be possible to use the new "spawn_with_attributes"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions