From c510d6f2684f2e2fa05c0de7bdaee954743546f8 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 29 Jun 2009 01:04:02 -0400 Subject: [PATCH] badblocks: Make sure the list of bad blocks found is flushed on interrupt Signed-off-by: "Theodore Ts'o" --- misc/badblocks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/badblocks.c b/misc/badblocks.c index 3e7b336..bcf89f7 100644 --- a/misc/badblocks.c +++ b/misc/badblocks.c @@ -223,6 +223,7 @@ static void *terminate_addr = NULL; static void terminate_intr(int signo EXT2FS_ATTR((unused))) { + fflush(out); fprintf(stderr, "\n\nInterrupted at block %llu\n", (unsigned long long) currently_testing); fflush(stderr); -- 1.8.3.1