Preserve the current abort behavior (#8995)

This commit is contained in:
Wei Tang 2018-06-28 04:31:20 +08:00 committed by Afri Schoedon
parent 9b5483a71b
commit ac3a706f0d

View File

@ -21,6 +21,7 @@ extern crate backtrace;
use std::io::{self, Write};
use std::panic::{self, PanicInfo};
use std::thread;
use std::process;
use backtrace::Backtrace;
/// Set the panic hook
@ -66,4 +67,5 @@ fn panic_hook(info: &PanicInfo) {
);
let _ = writeln!(stderr, "{}", ABOUT_PANIC);
process::abort();
}