Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CCXXXI committed Jan 10, 2021
1 parent d61edf4 commit 35868a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/userprog/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ struct process *process_create(struct thread *t)
p->thread = t;
p->pid = t->tid;
p->status = PROCESS_LOADING;
p->exit_code = -1;

list_push_back(&all_list, &p->allelem);
list_init(&p->children);
Expand Down

0 comments on commit 35868a5

Please sign in to comment.