nit in comment
This commit is contained in:
parent
074ac7ccd4
commit
ccd980bedf
1 changed files with 1 additions and 1 deletions
2
proc.c
2
proc.c
|
@ -116,7 +116,7 @@ found:
|
||||||
p->pid = nextpid++;
|
p->pid = nextpid++;
|
||||||
release(&ptable.lock);
|
release(&ptable.lock);
|
||||||
|
|
||||||
// Allocate kernel stack if necessary.
|
// Allocate kernel stack if possible.
|
||||||
if((p->kstack = kalloc(KSTACKSIZE)) == 0){
|
if((p->kstack = kalloc(KSTACKSIZE)) == 0){
|
||||||
p->state = UNUSED;
|
p->state = UNUSED;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue