fix(redox-rt/proc): from_raw should negate raw for

`KillProcTarget::ProcGroup`

Signed-off-by: Anhad Singh <andypython@protonmail.com>
This commit is contained in:
Anhad Singh
2025-12-10 14:34:41 +11:00
parent b5aad8faab
commit 3f986068e9
+1 -1
View File
@@ -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)
}