[][src]Function rlimit::prlimit

pub fn prlimit(
    pid: pid_t,
    resource: Resource,
    new_limit: Option<(Rlim, Rlim)>,
    old_limit: Option<(&mut Rlim, &mut Rlim)>
) -> Result<()>

[Linux] Set and get the resource limits of an arbitrary process.

Errors

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