Make syscall table initialization clearer. Add comments to the sys_waitpid function.
This commit is contained in:
@@ -465,7 +465,7 @@ pid_t sys_waitpid(pid_t pid, int *status, int options)
|
||||
list_for_each_decl(it, ¤t_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;
|
||||
|
||||
Reference in New Issue
Block a user