Fix unused import
I added that assert, because I managed to get an error I couldn't reproduce
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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))
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user