shithub: riscv

Download patch

ref: 36d2504adb5a28d8cf9743b47c26c85f51d94b5b
parent: 0dbbe79116b4ced3ee0e777a3c31bc87edb81b5e
author: cinap_lenrek <[email protected]>
date: Thu Jun 11 12:14:11 EDT 2015

zynq: make screen and cursor kprocs exit properly

--- a/sys/src/9/zynq/screen.c
+++ b/sys/src/9/zynq/screen.c
@@ -124,7 +124,7 @@
 	if(waserror()){
 		hwcursor.addr = 0;
 		hwcursor.proc = nil;
-		return;
+		pexit("detached", 1);
 	}
 
 	reg = (u32int*)hwcursor.addr;
@@ -204,7 +204,7 @@
 	if(waserror()){
 		fbscreen.addr = 0;
 		fbscreen.proc = nil;
-		return;
+		pexit("detached", 1);
 	}
 
 	for(;;){