You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: _exit.rs
    path of file: ./repos/maestro/src/syscall
    
    the code of the file until where you have to start completion: /*
 * Copyright 2024 Luc Len√¥tre
 *
 * This file is part of Maestro.
 *
 * Maestro is free software: you can redistribute 
    
pub fn do_exit(status: u32, thread_group: bool) -> ! {
	let (_pid, _tid) = {
		let proc_mutex = Process::current_assert();
		let mut proc = proc_mutex.lock();

		proc.exit(status, false);

		(proc.pid, proc.tid)
	};

	if thread_group {
		// TODO Iterate on every process of thread group `tid`, except the
		// process with pid `pid`
	}

	scheduler::end_tick();
	// Cannot resume since the process is now a zombie
	unreachable!();
}