dont hang if swap is full
This commit is contained in:
parent
924634963c
commit
5182bb7ecf
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ loop:
|
|||
sleep(&swapalloc.r, needpages, 0);
|
||||
|
||||
while(needpages(junk)) {
|
||||
if(swapimage.c) {
|
||||
if(swapimage.c && swapalloc.free) {
|
||||
p++;
|
||||
if(p >= ep){
|
||||
p = proctab(0);
|
||||
|
|
Loading…
Reference in a new issue