Update thread to add exit_status, intialised to -1, into the thread structure, w/ E

This commit is contained in:
sBubshait
2024-11-05 22:38:09 +00:00
parent f8e529e877
commit 2dccd87a76
2 changed files with 3 additions and 0 deletions

View File

@@ -659,6 +659,8 @@ init_thread (struct thread *t, const char *name, int nice, int priority,
t->recent_cpu = recent_cpu;
t->priority = t->base_priority;
t->exit_status = -1;
old_level = intr_disable ();
list_push_back (&all_list, &t->allelem);
intr_set_level (old_level);