kernel: call freebroken() for kproc() when out of processes
This commit is contained in:
parent
a557c515c8
commit
20429fb04f
1 changed files with 3 additions and 1 deletions
|
@ -1401,8 +1401,10 @@ kproc(char *name, void (*func)(void *), void *arg)
|
|||
static Pgrp *kpgrp;
|
||||
Proc *p;
|
||||
|
||||
while((p = newproc()) == nil)
|
||||
while((p = newproc()) == nil){
|
||||
freebroken();
|
||||
resrcwait("no procs for kproc");
|
||||
}
|
||||
|
||||
qlock(&p->debug);
|
||||
if(up != nil){
|
||||
|
|
Loading…
Reference in a new issue