Boot to desktop with process/context changes.

This commit is contained in:
4lDO2
2024-07-15 14:14:10 +02:00
parent 40f5c01586
commit 8259ed281c
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -284,6 +284,7 @@ impl<const FULL: bool> ProcScheme<FULL> {
false,
),
"sched-affinity" => (ContextHandle::SchedAffinity, true),
"status" => (ContextHandle::Status, false),
_ => return Ok(None),
}))
}
+2 -1
View File
@@ -78,6 +78,7 @@ pub fn exit(status: usize) -> ! {
}
process_lock.write().status = ProcessStatus::Exited(status);
context_lock.write().status = context::Status::Exited { user_data: status };
let children = process_lock.write().waitpid.receive_all();
@@ -519,7 +520,7 @@ pub fn waitpid(
let processes = process::PROCESSES.read();
for (_id, process_lock) in processes.iter() {
let process = process_lock.read();
if process.pgid == ppid {
if process.ppid == ppid {
found = true;
break;
}