ref: aa5b72a65e85e8e73313ebce1b52c8806edd5a9b
parent: 73331077510b6e63945b3d1fd0ced92c34fffcaf
author: cinap_lenrek <cinap_lenrek@localhost>
date: Wed Aug 24 03:58:14 EDT 2011
swap: do less print spamming, sched after killbig so killed proc can get released
--- a/sys/src/9/port/swap.c
+++ b/sys/src/9/port/swap.c
@@ -176,13 +176,9 @@
}
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;
--
⑨