mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
web: Assume SIGABRT is OOM
This commit is contained in:
parent
50c8a1045c
commit
73951c7b21
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,8 @@ pub fn eval(query: &str) -> String {
|
|||
};
|
||||
match output.status.signal() {
|
||||
Some(libc::SIGXCPU) => return format!("Calculation went over time limit"),
|
||||
// SIGABRT doesn't necessarily mean OOM, but GMP will raise it when it happens
|
||||
Some(libc::SIGABRT) => return format!("Calculation ran out of memory"),
|
||||
_ => ()
|
||||
};
|
||||
format!(
|
||||
|
|
Loading…
Reference in a new issue