From b6f25c89715d06fb9dfc8d6cf1723f441edd7098 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Thu, 15 Jun 2006 20:10:15 +0000 Subject: [PATCH] flush the output buffer after each page (help prevent lost data on ctrl-C) --- frontend/scanimage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/scanimage.c b/frontend/scanimage.c index bb817272d..2c7ffdc90 100644 --- a/frontend/scanimage.c +++ b/frontend/scanimage.c @@ -1408,6 +1408,9 @@ scan_it (void) } } + /* flush the output buffer */ + fflush( stdout ); + cleanup: if (image.data) free (image.data);