mirror of
https://github.com/fluencelabs/wasmer
synced 2025-05-12 02:27:11 +00:00
Unblock signals in LLVM trap handler.
This commit is contained in:
parent
f503764780
commit
bdcd73cd63
@ -69,6 +69,9 @@ extern "C" fn signal_trap_handler(
|
||||
_ucontext: *mut c_void,
|
||||
) {
|
||||
unsafe {
|
||||
if SigSet::all().thread_unblock().is_err() {
|
||||
std::process::abort();
|
||||
}
|
||||
// Apparently, we can unwind from arbitary instructions, as long
|
||||
// as we don't need to catch the exception inside the function that
|
||||
// was interrupted.
|
||||
|
Loading…
x
Reference in New Issue
Block a user