Skip to content

Kill(entireProcessTree: true) - cannot terminate self (?) #85383

Open
@notofug

Description

This works as expected and terminates application :
Process.GetCurrentProcess().Kill(entireProcessTree: false);

This throws InvalidOperation
Process.GetCurrentProcess().Kill(entireProcessTree: true);

Exception origin here ;

image

**

Would it be possible to allow also the 'self-termination-with-children' scenario gracefully ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions