Skip to content

std::process Cgroups? #31406

@sethdusek

Description

@sethdusek

Could it be possible to have cgroup support for std::process? Like a linux-specific trait so that you can limit certain things of processes for example:

Command::new("somecommand")
.arg("somearg")
.cgroup("somegroup:/somesubgroup")
.spawn()

It'd be really useful in certain stuff such as timeouts and memory limits, etc

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