rlimitFunction increase_nofile_limit
Source 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 and returns Ok(lim)
if RLIMIT_NOFILE
does not exist on current platform.
ยงErrors
Returns an error if any syscall failed.