Use rtabort

This commit is contained in:
Chris Denton
2022-04-04 06:08:41 +01:00
parent 88c05edc9d
commit d2ce150c8c
+1 -2
View File
@@ -299,8 +299,7 @@ fn synchronous_write(&self, buf: &[u8], offset: Option<u64>) -> io::Result<usize
// Doing otherwise means that the buffer may be read and the stack
// written to after this function returns.
c::STATUS_PENDING => {
eprintln!("I/O error: operation failed to complete synchronously");
crate::process::abort();
rtabort!("I/O error: operation failed to complete synchronously");
}
// Success!