format
This commit is contained in:
parent
7bffbecd21
commit
ab0db979a1
1 changed files with 12 additions and 3 deletions
15
src/main.rs
15
src/main.rs
|
|
@ -141,9 +141,18 @@ fn install_crash_handler() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
libc::signal(libc::SIGSEGV, crash_handler as *const () as libc::sighandler_t);
|
libc::signal(
|
||||||
libc::signal(libc::SIGBUS, crash_handler as *const () as libc::sighandler_t);
|
libc::SIGSEGV,
|
||||||
libc::signal(libc::SIGABRT, crash_handler as *const () as libc::sighandler_t);
|
crash_handler as *const () as libc::sighandler_t,
|
||||||
|
);
|
||||||
|
libc::signal(
|
||||||
|
libc::SIGBUS,
|
||||||
|
crash_handler as *const () as libc::sighandler_t,
|
||||||
|
);
|
||||||
|
libc::signal(
|
||||||
|
libc::SIGABRT,
|
||||||
|
crash_handler as *const () as libc::sighandler_t,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue