Function rlimit::prlimit

source ·
pub fn prlimit(
    pid: pid_t,
    resource: Resource,
    new_limit: Option<(u64, u64)>,
    old_limit: Option<(&mut u64, &mut u64)>
) -> Result<()>
Available on Linux or Android only.
Expand description

Set and get the resource limits of an arbitrary process.

Errors

See https://man7.org/linux/man-pages/man2/prlimit.2.html