swap: do less print spamming, sched after killbig so killed proc can get released

This commit is contained in:
cinap_lenrek 2011-08-24 07:58:14 +02:00
parent 5182bb7ecf
commit 61a0117ea5

View file

@ -176,13 +176,9 @@ loop:
}
qunlock(&p->seglock);
} else {
print("out of memory\n");
killbig("out of memory");
freebroken(); /* can use the memory */
/* Emulate the old system if no swap channel */
if(!swapimage.c)
tsleep(&up->sleep, return0, 0, 5000);
sched();
}
}
goto loop;