MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / raise_nofile_limit

Function raise_nofile_limit

crates/openshell-driver-vm/src/runtime.rs:952–964  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

950}
951
952fn raise_nofile_limit() {
953 #[cfg(unix)]
954 unsafe {
955 let mut rlim = libc::rlimit {
956 rlim_cur: 0,
957 rlim_max: 0,
958 };
959 if libc::getrlimit(libc::RLIMIT_NOFILE, &raw mut rlim) == 0 {
960 rlim.rlim_cur = rlim.rlim_max;
961 let _ = libc::setrlimit(libc::RLIMIT_NOFILE, &raw const rlim);
962 }
963 }
964}
965
966fn clamp_log_level(level: u32) -> u32 {
967 match level {

Callers 1

run_libkrun_vmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected