feat(kernel): add Exit and ExitThread syscalls with process cleanup
This commit is contained in:
@@ -125,6 +125,10 @@ impl<P: Platform> Kernel<P> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn process_exists(&self, pid: ProcessId) -> bool {
|
||||
self.processes.get(pid).is_ok()
|
||||
}
|
||||
|
||||
fn check_cap(
|
||||
&self,
|
||||
owner: ProcessId,
|
||||
|
||||
Reference in New Issue
Block a user