Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Preserve the current abort behavior #8995

Merged
merged 1 commit into from
Jun 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions util/panic_hook/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -66,4 +67,5 @@ fn panic_hook(info: &PanicInfo) {
);

let _ = writeln!(stderr, "{}", ABOUT_PANIC);
process::abort();
}