use crate::proc::PROCESSES; use crate::proc::context::CpuContext; pub fn sys_exit(_ctx: &mut CpuContext) { let pid = crate::arch::syscall::current_pid(); let mut ptable = PROCESSES.lock(); ptable.zombify(pid); crate::sched::rescue_with_ptable(ptable) }