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:
parent
1ad44b23d1
commit
cb14269145
3 changed files with 34 additions and 34 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue