Function runa_orbiter::objects::shm::handle_sigbus
source · pub unsafe fn handle_sigbus(info: &siginfo_t) -> bool
Expand description
Handle a SIGBUS signal. Tries to recover from SIGBUS caused by a client shrinking its shm pool. You MUST call this function is your SIGBUS handler if you want to map shm pools.
Returns true
if the signal was handled, false
otherwise. Usually you
should reraise the signal if this function returns false
.
Safety
Must be called from a SIGBUS handler, with info
provided to the signal
handler.