From 3f986068e9466a422178442a2d8c1d2d4e68cd2b Mon Sep 17 00:00:00 2001 From: Anhad Singh Date: Wed, 10 Dec 2025 14:34:41 +1100 Subject: [PATCH] fix(redox-rt/proc): `from_raw` should negate `raw` for `KillProcTarget::ProcGroup` Signed-off-by: Anhad Singh --- redox-rt/src/protocol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }