git: 9front

Download patch

ref: 580fa971d9de2809c8630e3c5cf3bbf3c5d412ef
parent: 6668d145ef232e3e38856aafcde81a192f44a6b9
author: cinap_lenrek <cinap_lenrek@felloff.net>
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(;;){
--