]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Don't print "stop typing" if the user interrupted the entropy gathering.
authorBrian Wellington <source@isc.org>
Mon, 31 Jul 2000 20:38:27 +0000 (20:38 +0000)
committerBrian Wellington <source@isc.org>
Mon, 31 Jul 2000 20:38:27 +0000 (20:38 +0000)
bin/dnssec/dnssectool.c

index 944af7ed22608137d9a27805553584ad5829c315..4a604cf84ed9b81b79c0f021c86a817ebdef979e 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dnssectool.c,v 1.13 2000/07/27 09:36:34 tale Exp $ */
+/* $Id: dnssectool.c,v 1.14 2000/07/31 20:38:27 bwelling Exp $ */
 
 #include <config.h>
 
@@ -201,7 +201,8 @@ kbdstop(isc_entropysource_t *source, void *arg) {
 
        UNUSED(source);
 
-       fprintf(stderr, "stop typing.\r\n");
+       if (!isc_keyboard_canceled(kbd))
+               fprintf(stderr, "stop typing.\r\n");
        (void)isc_keyboard_close(kbd, 3);
 }