From: Francois Fleuret Date: Mon, 4 Feb 2013 07:54:38 +0000 (+0100) Subject: Now flushes stdout when writing progress in non-quiet mode. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mymail.git;a=commitdiff_plain;h=8cee89a392dc0a2e1379ae9b56d03c4bf70e0254 Now flushes stdout when writing progress in non-quiet mode. --- diff --git a/mymail.c b/mymail.c index af3ef6c..692e0a3 100644 --- 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); } } }