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:
parent
15997d5849
commit
5a23692444
4 changed files with 26 additions and 13 deletions
2
proc.c
2
proc.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue