Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Don't ever decrease rlimit
cloudhead committed 2 years ago
commit 640d302345a4dfa196320432e1b674c0b7d946e0
parent f4f479d68fa5dbac68569931f3e0be580c6be58f
1 file changed +3 -0
modified radicle/src/io.rs
@@ -14,6 +14,9 @@ pub fn set_file_limit(n: u64) -> io::Result<u64> {
            return Err(io::Error::last_os_error());
        }
    }
+
    if rlim.rlim_cur >= n {
+
        return Ok(rlim.rlim_cur);
+
    }
    // Set the soft limit to the given value, up to the hard limit.
    rlim.rlim_cur = n.min(rlim.rlim_max);
    unsafe {