From 98f47d5867cbbaa06f2c9080c301c9191e196205 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 22 Nov 2013 22:56:34 +0100 Subject: kernel: more kproc pexit() and sleep error handling --- sys/src/9/mtx/mmu.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/src/9/mtx') diff --git a/sys/src/9/mtx/mmu.c b/sys/src/9/mtx/mmu.c index c43a1a7dd..6d14aaa1c 100644 --- a/sys/src/9/mtx/mmu.c +++ b/sys/src/9/mtx/mmu.c @@ -76,6 +76,9 @@ mmusweep(void*) int i, x, sweepcolor; ulong *ptab, *ptabend, ptecol; + while(waserror()) + ; + for(;;) { if(PIDCOLOR(m->mmupid) != m->trigcolor) sleep(&m->sweepr, work, nil); -- cgit v1.2.3