From 8e2046bed5a597ca2f96aa8edc43f8f2fac6f7b2 Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Thu, 21 Feb 2008 09:12:53 +0100 Subject: [PATCH] aseqdump: flush output Flush the output after all currently available events have been printed to allow filtering interactive output through a pipe. --- seq/aseqdump/aseqdump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/seq/aseqdump/aseqdump.c b/seq/aseqdump/aseqdump.c index 1cf210d..5122bbb 100644 --- a/seq/aseqdump/aseqdump.c +++ b/seq/aseqdump/aseqdump.c @@ -428,6 +428,7 @@ int main(int argc, char *argv[]) if (event) dump_event(event); } while (err > 0); + fflush(stdout); if (stop) break; }