Replace a couple of asserts with rtassert! in rt code

This replaces a couple of panic locations with hard aborts. The panics
can't be catched by the user anyway in these locations.
This commit is contained in:
bjorn3 2021-09-16 15:20:44 +02:00
parent 1ad44b23d1
commit cb14269145
3 changed files with 34 additions and 34 deletions

View file

@ -120,7 +120,7 @@ pub unsafe fn init(argc: isize, argv: *const *const u8) {
unsafe fn reset_sigpipe() {
#[cfg(not(any(target_os = "emscripten", target_os = "fuchsia")))]
assert!(signal(libc::SIGPIPE, libc::SIG_IGN) != libc::SIG_ERR);
rtassert!(signal(libc::SIGPIPE, libc::SIG_IGN) != libc::SIG_ERR);
}
}