rlimit

Function prlimit

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

Set and get the resource limits of an arbitrary process.

ยงErrors

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