Fix unused import

I added that assert, because I managed to get an error I couldn't reproduce
This commit is contained in:
jD91mZM2
2020-06-16 13:58:36 +02:00
parent 9c891384ea
commit edcc39929d
2 changed files with 2 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ use crate::{
}
},
common::unique::Unique,
context::{self, signal, Context, ContextId, Status},
context::{self, signal, Context, ContextId},
event,
scheme::proc,
sync::WaitCondition,

View File

@@ -345,6 +345,7 @@ impl Scheme for ProcScheme {
})?,
RegsKind::Int => try_stop_context(info.pid, |context| match unsafe { ptrace::regs_for(&context) } {
None => {
assert!(!context.running, "try_stop_context is broken, clearly");
println!("{}:{}: Couldn't read registers from stopped process", file!(), line!());
Err(Error::new(ENOTRECOVERABLE))
},