Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > media > main-release-src > by-pkgid > 2f0dbc793eb662c412bd9d3b54d8f277 > files > 1

xev-1.0.3-4mdv2009.1.src.rpm

$Id$

Flush standard output after processing each event, since xev's exit(0) is
unreachable code.

This patch by Branden Robinson.  Thanks to Bill Currie for identifying the
problem and the solution.  See Debian bug #238638.

--- x11-utils.orig/xev/xev.c
+++ x11-utils/xev/xev.c
@@ -1065,6 +1065,7 @@
 	    printf ("Unknown event type %d\n", event.type);
 	    break;
 	}
+    fflush(stdout);
     }
 
     XCloseDisplay (dpy);