WIP: Signal handling

This commit is contained in:
Jeremy Soller
2017-07-09 21:34:38 -06:00
parent 7e52541f39
commit b5ff0aabd5
7 changed files with 151 additions and 47 deletions
+3
View File
@@ -72,6 +72,9 @@ pub fn resource() -> Result<Vec<u8>> {
if let Some(ref stack) = context.stack {
memory += stack.size();
}
if let Some(ref sigstack) = context.sigstack {
memory += sigstack.size();
}
let memory_string = if memory >= 1024 * 1024 * 1024 {
format!("{} GB", memory / 1024 / 1024 / 1024)