diff options
author | Branden Robinson <branden@debian.org> | 2004-03-22 17:19:47 -0500 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2008-11-16 22:20:18 +0100 |
commit | 2fa6919b6f4cb007e218185f15c8fda512afcb37 (patch) | |
tree | edc4a640afc740f74f283d0087040139e40e576b /xev.c | |
parent | 04f027bf11b566224ead89aff51eb06d222b7086 (diff) |
Flush standard output after processing each event
When redirecting the output of xev (eg, xev > foo), the output file is
truncated on exit due to libc buffering, since xev's exit(0) is
unreachable code. Reported by Bill Currie.
Debian bug#238638 <http://bugs.debian.org/238638>
Diffstat (limited to 'xev.c')
-rw-r--r-- | xev.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1065,6 +1065,7 @@ main (int argc, char **argv) printf ("Unknown event type %d\n", event.type); break; } + fflush(stdout); } XCloseDisplay (dpy); |