Module Name:    src
Committed By:   jmcneill
Date:           Fri Dec 30 14:22:41 UTC 2011

Modified Files:
        src/sys/arch/usermode/dev: vncfb.c

Log Message:
no need to poll for pending drawing ops if no client is connected


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/dev/vncfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/usermode/dev/vncfb.c
diff -u src/sys/arch/usermode/dev/vncfb.c:1.7 src/sys/arch/usermode/dev/vncfb.c:1.8
--- src/sys/arch/usermode/dev/vncfb.c:1.7	Fri Dec 30 14:20:33 2011
+++ src/sys/arch/usermode/dev/vncfb.c	Fri Dec 30 14:22:41 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: vncfb.c,v 1.7 2011/12/30 14:20:33 jmcneill Exp $ */
+/* $NetBSD: vncfb.c,v 1.8 2011/12/30 14:22:41 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <[email protected]>
@@ -35,7 +35,7 @@
 #include "opt_wsemul.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vncfb.c,v 1.7 2011/12/30 14:20:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vncfb.c,v 1.8 2011/12/30 14:22:41 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -357,7 +357,8 @@ vncfb_copyrows(void *priv, int srcrow, i
 
 	/* barrier */
 	while (sc->sc_rfb.nupdates > 0)
-		thunk_rfb_poll(&sc->sc_rfb, NULL);
+		if (thunk_rfb_poll(&sc->sc_rfb, NULL) == -1)
+			break;
 
 	ops->copyrows(ri, srcrow, dstrow, nrows);
 

Reply via email to