kern
diff src/proc.c @ 98:921a264297a4
merged the filesystem stuff
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 17 Apr 2014 17:03:30 +0300 |
parents | 7ff2b4971216 |
children |
line diff
1.1 --- a/src/proc.c Thu Apr 17 12:30:02 2014 +0300 1.2 +++ b/src/proc.c Thu Apr 17 17:03:30 2014 +0300 1.3 @@ -77,6 +77,8 @@ 1.4 p->id = 1; 1.5 p->parent = 0; /* no parent for init */ 1.6 1.7 + p->umask = 022; 1.8 + 1.9 p->ticks_left = TIMESLICE_TICKS; 1.10 p->next = p->prev = 0; 1.11 1.12 @@ -168,6 +170,8 @@ 1.13 /* copy file table */ 1.14 memcpy(p->files, parent->files, sizeof p->files); 1.15 1.16 + p->umask = parent->umask; 1.17 + 1.18 /* allocate a kernel stack for the new process */ 1.19 if((p->kern_stack_pg = pgalloc(KERN_STACK_SIZE / PGSIZE, MEM_KERNEL)) == -1) { 1.20 return -EAGAIN;