From 35868a5fa5e4fbc14c01948f2aa6ec4c5dc0fd6c Mon Sep 17 00:00:00 2001 From: CCXXXI Date: Mon, 11 Jan 2021 01:23:31 +0800 Subject: [PATCH] fix bug --- src/userprog/process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/userprog/process.c b/src/userprog/process.c index 03b28d0..07f0d76 100644 --- a/src/userprog/process.c +++ b/src/userprog/process.c @@ -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);