kernel: try freebroken() *before* killbig() (thanks aiju)
This commit is contained in:
parent
592b8d5b35
commit
76f21ca715
|
@ -164,8 +164,8 @@ pager(void*)
|
|||
|
||||
if(swapimage.c == nil || swapalloc.free == 0){
|
||||
Killbig:
|
||||
killbig("out of memory");
|
||||
freebroken(); /* can use the memory */
|
||||
if(!freebroken())
|
||||
killbig("out of memory");
|
||||
sched();
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue