gpg: Improve perceived speed of secret key listings.
authorWerner Koch <wk@gnupg.org>
Wed, 12 Nov 2014 11:41:20 +0000 (12:41 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 12 Nov 2014 11:41:20 +0000 (12:41 +0100)
* g10/keylist.c (list_keyblock): Flush stdout for secret keys.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keylist.c

index b5ea84d..75def77 100644 (file)
@@ -1569,6 +1569,8 @@ list_keyblock (KBNODE keyblock, int secret, int has_secret, int fpr,
     list_keyblock_colon (keyblock, secret, has_secret, fpr);
   else
     list_keyblock_print (keyblock, secret, fpr, opaque);
+  if (secret)
+    es_fflush (es_stdout);
 }
 
 /*