Use sys scheme for kstop rather than signals.

This commit is contained in:
4lDO2
2025-03-31 14:59:00 +02:00
parent 92fcb4472b
commit ef5de94150
2 changed files with 17 additions and 10 deletions
-8
View File
@@ -490,14 +490,6 @@ pub fn kill(pid: ProcessId, sig: usize, mode: KillMode) -> Result<usize> {
ruid: current_ruid,
};
if current_euid == 0 && pid.get() == 1 {
match sig {
SIGTERM => unsafe { crate::stop::kreset() },
SIGKILL => unsafe { crate::stop::kstop() },
_ => return Ok(0), // error?
}
}
let mut found = 0;
let mut sent = 0;
let mut killed_self = false;