Now flushes stdout when writing progress in non-quiet mode.
[mymail.git] / 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);
       }
     }
   }