mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-16 16:20:49 +00:00
Add the SA_ONSTACK flag to SigAction so that stack overflow doesn't prevent unwinding.
This commit is contained in:
parent
399d253bc1
commit
dad50f6f2c
@ -12,7 +12,7 @@ use nix::sys::signal::{
|
||||
pub unsafe fn install_sighandler() {
|
||||
let sa = SigAction::new(
|
||||
SigHandler::Handler(signal_trap_handler),
|
||||
SaFlags::empty(),
|
||||
SaFlags::SA_ONSTACK,
|
||||
SigSet::empty(),
|
||||
);
|
||||
sigaction(SIGFPE, &sa).unwrap();
|
||||
|
Loading…
x
Reference in New Issue
Block a user