]> andersk Git - openssh.git/blobdiff - entropy.c
- markus@cvs.openbsd.org 2001/11/07 22:53:21
[openssh.git] / entropy.c
index 468760394b2e531e174ed64f4cd4f24114c05a4a..9588f792946f413a7d7aba2aa2e28691acabe46f 100644 (file)
--- a/entropy.c
+++ b/entropy.c
@@ -505,7 +505,9 @@ hash_output_from_command(entropy_source_t *src, char *hash)
                        break;
                case 1:
                        /* command input */
-                       bytes_read = read(p[0], buf, sizeof(buf));
+                       do {
+                               bytes_read = read(p[0], buf, sizeof(buf));
+                       } while (bytes_read == -1 && errno == EINTR);
                        RAND_add(&bytes_read, sizeof(&bytes_read), 0.0);
                        if (bytes_read == -1) {
                                error_abort = 1;
This page took 0.031216 seconds and 4 git commands to generate.