Make ForceKilled meaningful, += Dead && SIGKILL.

This commit is contained in:
4lDO2
2025-09-10 13:22:29 +02:00
parent 172a0ffd02
commit dd366f01c4
+5 -1
View File
@@ -1253,8 +1253,12 @@ impl ContextHandle {
let status = {
let context = context.read();
match context.status {
Status::Runnable | Status::Dead { excp: None }
if context.being_sigkilled =>
{
ContextStatus::ForceKilled
}
Status::Dead { excp: None } => ContextStatus::Dead,
Status::Runnable if context.being_sigkilled => ContextStatus::ForceKilled,
Status::Dead { excp: Some(excp) } => {
let (status, payload) =
buf.split_at(size_of::<usize>()).ok_or(Error::new(EINVAL))?;