Skip to content

ChildProcess.Kill() can let internal exceptions through #139

@alexrp

Description

@alexrp

try
{
// TODO: Review exceptions that can be thrown here.
_process.Kill(entireProcessTree);
}
catch (InvalidOperationException)
{
// The process is already gone.
}

https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.process.kill#system-diagnostics-process-kill(system-boolean)

I suspect the documentation here may not match the current Process implementation...

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: processesIssues related to spawning child processes.

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions