Now flushes stdout when writing progress in non-quiet mode.
authorFrancois Fleuret <francois@fleuret.org>
Mon, 4 Feb 2013 07:54:38 +0000 (08:54 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Mon, 4 Feb 2013 07:54:38 +0000 (08:54 +0100)
mymail.c

index af3ef6c..692e0a3 100644 (file)
--- a/mymail.c
+++ b/mymail.c
@@ -405,6 +405,7 @@ void recursive_search_in_db(const char *entry_name, regex_t *db_filename_regexp,
 
       if(!quiet) {
         printf("Searching in '%s' ... ", entry_name);
+        fflush(stdout);
       }
 
       if(!db_file) {
@@ -435,6 +436,7 @@ void recursive_search_in_db(const char *entry_name, regex_t *db_filename_regexp,
 
       if(!quiet) {
         printf("done.\n");
+        fflush(stdout);
       }
     }
   }