diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-14 14:45:19 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-14 14:45:19 +0200 |
commit | 76f21ca715d99dd533053c8465ecdd16915fadbc (patch) | |
tree | 806e14f10d27d9a90aba34bdbed887b385cd0631 /sys/src/9 | |
parent | 592b8d5b3528ba34f5bd0fffebdffcac1c9450cd (diff) |
kernel: try freebroken() *before* killbig() (thanks aiju)
Diffstat (limited to 'sys/src/9')
-rw-r--r-- | sys/src/9/port/swap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/port/swap.c b/sys/src/9/port/swap.c index 9d492257e..81d3bf26b 100644 --- a/sys/src/9/port/swap.c +++ b/sys/src/9/port/swap.c @@ -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; } |