mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Attach more signals to the backtrace signal handler.
This commit is contained in:
parent
44ed0f29a4
commit
dda334968f
5 changed files with 8 additions and 5 deletions
|
@ -70,7 +70,10 @@ fn install_crash_handler() {
|
|||
}
|
||||
}
|
||||
|
||||
signal!(Sig::SEGV, handler);
|
||||
signal!(Sig::SEGV, handler); // handle segfaults
|
||||
signal!(Sig::ILL, handler); // handle stack overflow and unsupported CPUs
|
||||
signal!(Sig::IOT, handler); // handle double panics
|
||||
signal!(Sig::BUS, handler); // handle invalid memory access
|
||||
}
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue