diff --git a/redox-rt/src/protocol.rs b/redox-rt/src/protocol.rs index 4a9faf3c7d..47f11215cf 100644 --- a/redox-rt/src/protocol.rs +++ b/redox-rt/src/protocol.rs @@ -201,7 +201,7 @@ impl ProcKillTarget { } else if raw == -1 { Self::All } else if raw < 0 { - Self::ProcGroup(raw as usize) + Self::ProcGroup(raw.wrapping_neg() as usize) } else { Self::SingleProc(raw as usize) }