Informative text about process::abort.

This commit is contained in:
Josh Matthews 2017-05-16 18:33:47 -04:00 committed by GitHub
parent 5a82e8ffdd
commit 3fef2535fc

View file

@ -68,6 +68,8 @@ fn install_crash_handler() {
.unwrap_or("".to_owned()); .unwrap_or("".to_owned());
println!("Stack trace{}\n{:?}", name, Backtrace::new()); println!("Stack trace{}\n{:?}", name, Backtrace::new());
unsafe { unsafe {
// N.B. Using process::abort() here causes the crash handler to be
// triggered recursively.
abort(); abort();
} }
} }