Update thread and syscall to use local fd counter instead global one, preventing overflow

This commit is contained in:
sBubshait
2024-11-15 15:48:56 +00:00
parent 7daf4fb079
commit 6b1dbdd34f
4 changed files with 8 additions and 6 deletions

View File

@@ -688,6 +688,7 @@ init_thread (struct thread *t, const char *name, int nice, int priority,
t->recent_cpu = recent_cpu;
t->priority = t->base_priority;
t->fd_counter = MINIMUM_USER_FD;
t->exit_status = -1;
list_init (&t->child_results);