]> git.lizzy.rs Git - plan9front.git/commitdiff
swap: do less print spamming, sched after killbig so killed proc can get released
authorcinap_lenrek <cinap_lenrek@localhost>
Wed, 24 Aug 2011 05:58:14 +0000 (07:58 +0200)
committercinap_lenrek <cinap_lenrek@localhost>
Wed, 24 Aug 2011 05:58:14 +0000 (07:58 +0200)
sys/src/9/port/swap.c

index 54e8b99e059e165aedd72169a322ac841a6a18c4..79b756452bb6177eec281ace4bc55859218e01fc 100644 (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;