Skip to content

Remove pgrep dependency from KillTree implementation #6086

@tmds

Description

@tmds

KillTree has a dependency on pgrep:

var exitCode = RunProcessAndWaitForExit(
"pgrep",
$"-P {parentId}",
out string stdout);

This means it can't work on systems which don't have this tool installed.

dotnet-watch has a similar dependency which causes it to fail in certain container images: dotnet/aspnetcore#27950.

cc @Forgind

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedIssues that the core team doesn't plan to work on, but would accept a PR for. Comment to claim.triaged

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions