Whamcloud - gitweb
badblocks: Make sure the list of bad blocks found is flushed on interrupt
authorTheodore Ts'o <tytso@mit.edu>
Mon, 29 Jun 2009 05:04:02 +0000 (01:04 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 29 Jun 2009 05:04:02 +0000 (01:04 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/badblocks.c

index 3e7b336..bcf89f7 100644 (file)
@@ -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);