diff options
Diffstat (limited to 'src/threads/thread.c')
| -rw-r--r-- | src/threads/thread.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/threads/thread.c b/src/threads/thread.c index 43dd8e3..3112a71 100644 --- a/src/threads/thread.c +++ b/src/threads/thread.c @@ -436,6 +436,9 @@ init_thread (struct thread *t, const char *name, int priority) strlcpy (t->name, name, sizeof t->name); t->stack = (uint8_t *) t + PGSIZE; t->priority = priority; +#ifdef USERPROG + list_init (&t->children); +#endif t->magic = THREAD_MAGIC; } |
