]> git.lizzy.rs Git - plan9front.git/commitdiff
zynq: make screen and cursor kprocs exit properly
authorcinap_lenrek <cinap_lenrek@felloff.net>
Thu, 11 Jun 2015 14:14:11 +0000 (16:14 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Thu, 11 Jun 2015 14:14:11 +0000 (16:14 +0200)
sys/src/9/zynq/screen.c

index 25a4dffb5e448132b564d8641ab6c3d8f247ec6e..620b2025f848da56c193dbe0446103b3be4a6339 100644 (file)
@@ -124,7 +124,7 @@ cursorproc(void *arg)
        if(waserror()){
                hwcursor.addr = 0;
                hwcursor.proc = nil;
-               return;
+               pexit("detached", 1);
        }
 
        reg = (u32int*)hwcursor.addr;
@@ -204,7 +204,7 @@ screenproc(void *arg)
        if(waserror()){
                fbscreen.addr = 0;
                fbscreen.proc = nil;
-               return;
+               pexit("detached", 1);
        }
 
        for(;;){