summaryrefslogtreecommitdiff
path: root/ssh-rand-helper.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-10-21 10:13:35 +1000
committerDamien Miller <djm@mindrot.org>2002-10-21 10:13:35 +1000
commit5a5da88c59d30c8a97625def757d20f151bb200c (patch)
treead67fa1954289734b7625d8877a497b8f49bcd80 /ssh-rand-helper.c
parent3e0064781bfd3a0efdd28ee84f34a3807ff2988a (diff)
- (djm) Kill ssh-rand-helper children on timeout, patch from
dtucker@zip.com.au
Diffstat (limited to 'ssh-rand-helper.c')
-rw-r--r--ssh-rand-helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh-rand-helper.c b/ssh-rand-helper.c
index e6c52b54..375ba3cb 100644
--- a/ssh-rand-helper.c
+++ b/ssh-rand-helper.c
@@ -39,7 +39,7 @@
#include "pathnames.h"
#include "log.h"
-RCSID("$Id: ssh-rand-helper.c,v 1.8 2002/07/28 20:42:24 stevesk Exp $");
+RCSID("$Id: ssh-rand-helper.c,v 1.9 2002/10/21 00:13:37 djm Exp $");
/* Number of bytes we write out */
#define OUTPUT_SEED_SIZE 48
@@ -355,6 +355,7 @@ hash_command_output(entropy_cmd_t *src, unsigned char *hash)
case 0:
/* timer expired */
error_abort = 1;
+ kill(pid, SIGINT);
break;
case 1:
/* command input */