From d48aa4f0bce28159b6c5ee6bd0085a7f5a82e962 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 15 Nov 2026 15:43:07 +0100 Subject: 0.5.0: visible step counter, one client per turn, docs corrected Also fixes a 32-bit-only rlim_t mismatch found by building the target. --- src/tools/shell.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/tools/shell.rs') diff --git a/src/tools/shell.rs b/src/tools/shell.rs index 29d2375..6f095c6 100644 --- a/src/tools/shell.rs +++ b/src/tools/shell.rs @@ -61,9 +61,10 @@ pub fn bash( .process_group(0); unsafe { command.pre_exec(|| { + // rlim_t is u32 on i686 and u64 on x86-64. let limit = libc::rlimit { - rlim_cur: MAX_OUTPUT_BYTES, - rlim_max: MAX_OUTPUT_BYTES, + rlim_cur: MAX_OUTPUT_BYTES as libc::rlim_t, + rlim_max: MAX_OUTPUT_BYTES as libc::rlim_t, }; if libc::setrlimit(libc::RLIMIT_FSIZE, &limit) != 0 { return Err(std::io::Error::last_os_error()); -- cgit v1.2.3