From 00677b1b20c22de05c3afca52e41110036a170be Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Thu, 15 Feb 2024 17:21:51 +0100 Subject: [PATCH] memory: fix sigbus handling --- src/clientmem.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clientmem.rs b/src/clientmem.rs index a751f5ed..993b0eed 100644 --- a/src/clientmem.rs +++ b/src/clientmem.rs @@ -142,7 +142,7 @@ unsafe extern "C" fn sigbus(sig: i32, info: &c::siginfo_t, _ucontext: *mut c::c_ lo as _, hi - lo, c::PROT_WRITE | c::PROT_READ, - c::MAP_ANONYMOUS | c::MAP_PRIVATE, + c::MAP_ANONYMOUS | c::MAP_PRIVATE | c::MAP_FIXED, -1, 0, );