fix usertests to correctly test what happens when you call

exec() with arguments that don't fit on a single page.
This commit is contained in:
Robert Morris 2011-09-01 12:02:49 -04:00
parent 15997d5849
commit 5a23692444
4 changed files with 26 additions and 13 deletions

2
proc.c
View file

@ -49,7 +49,7 @@ found:
p->pid = nextpid++;
release(&ptable.lock);
// Allocate kernel stack if possible.
// Allocate kernel stack.
if((p->kstack = kalloc()) == 0){
p->state = UNUSED;
return 0;