swap: do less print spamming, sched after killbig so killed proc can get released
This commit is contained in:
parent
5182bb7ecf
commit
61a0117ea5
1 changed files with 1 additions and 5 deletions
|
@ -176,13 +176,9 @@ loop:
|
||||||
}
|
}
|
||||||
qunlock(&p->seglock);
|
qunlock(&p->seglock);
|
||||||
} else {
|
} else {
|
||||||
print("out of memory\n");
|
|
||||||
killbig("out of memory");
|
killbig("out of memory");
|
||||||
freebroken(); /* can use the memory */
|
freebroken(); /* can use the memory */
|
||||||
|
sched();
|
||||||
/* Emulate the old system if no swap channel */
|
|
||||||
if(!swapimage.c)
|
|
||||||
tsleep(&up->sleep, return0, 0, 5000);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
goto loop;
|
goto loop;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue