Preserve the current abort behavior (#8995)
This commit is contained in:
parent
9b5483a71b
commit
ac3a706f0d
@ -21,6 +21,7 @@ extern crate backtrace;
|
|||||||
use std::io::{self, Write};
|
use std::io::{self, Write};
|
||||||
use std::panic::{self, PanicInfo};
|
use std::panic::{self, PanicInfo};
|
||||||
use std::thread;
|
use std::thread;
|
||||||
|
use std::process;
|
||||||
use backtrace::Backtrace;
|
use backtrace::Backtrace;
|
||||||
|
|
||||||
/// Set the panic hook
|
/// Set the panic hook
|
||||||
@ -66,4 +67,5 @@ fn panic_hook(info: &PanicInfo) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
let _ = writeln!(stderr, "{}", ABOUT_PANIC);
|
let _ = writeln!(stderr, "{}", ABOUT_PANIC);
|
||||||
|
process::abort();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user