Function rlimit::utils::increase_nofile_limit[][src]

pub fn increase_nofile_limit(lim: u64) -> Result<u64>
Expand description

Try to increase NOFILE limit and return the current soft limit.

lim is the expected limit which can be up to u64::MAX.

This function does nothing if RLIMIT_NOFILE does not exist on current platform.

Errors

Returns an error if any syscall failed.