mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Replace intrinsics::abort with process::abort
This commit is contained in:
parent
0abd5bbabd
commit
a239419cc0
3 changed files with 4 additions and 9 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
#![allow(non_camel_case_types)]
|
||||
#![feature(box_syntax)]
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(link_args)]
|
||||
|
||||
#[macro_use]
|
||||
|
|
|
@ -12,9 +12,7 @@ macro_rules! stub(
|
|||
#[allow(non_snake_case)]
|
||||
pub extern "C" fn $name() {
|
||||
println!("CEF stub function called: {}", stringify!($name));
|
||||
unsafe {
|
||||
::std::intrinsics::abort()
|
||||
}
|
||||
::std::process::abort()
|
||||
}
|
||||
)
|
||||
);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
//!
|
||||
//! [glutin]: https://github.com/tomaka/glutin
|
||||
|
||||
#![feature(start, core_intrinsics)]
|
||||
#![feature(start)]
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
extern crate android_injected_glue;
|
||||
|
@ -58,7 +58,7 @@ pub mod platform {
|
|||
fn install_crash_handler() {
|
||||
use backtrace::Backtrace;
|
||||
use sig::ffi::Sig;
|
||||
use std::intrinsics::abort;
|
||||
use std::process::abort;
|
||||
use std::thread;
|
||||
|
||||
fn handler(_sig: i32) {
|
||||
|
@ -67,9 +67,7 @@ fn install_crash_handler() {
|
|||
.map(|n| format!(" for thread \"{}\"", n))
|
||||
.unwrap_or("".to_owned());
|
||||
println!("Stack trace{}\n{:?}", name, Backtrace::new());
|
||||
unsafe {
|
||||
abort();
|
||||
}
|
||||
abort();
|
||||
}
|
||||
|
||||
signal!(Sig::SEGV, handler); // handle segfaults
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue