Make syscall table initialization clearer. Add comments to the sys_waitpid function.

This commit is contained in:
Enrico Fraccaroli (Galfurian)
2023-01-27 10:50:04 -05:00
parent 7a8ce1066a
commit e926850ce3
4 changed files with 306 additions and 148 deletions
+1 -1
View File
@@ -465,7 +465,7 @@ pid_t sys_waitpid(pid_t pid, int *status, int options)
list_for_each_decl(it, &current_process->children)
{
// Get the entry.
task_struct *entry = list_entry(it, task_struct, sibling);
entry = list_entry(it, task_struct, sibling);
// Check the entry.
if (entry == NULL) {
continue;