summaryrefslogtreecommitdiffstats
path: root/src/haveged.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/haveged.c')
-rw-r--r--src/haveged.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/haveged.c b/src/haveged.c
index fcfe764..293f5e6 100644
--- a/src/haveged.c
+++ b/src/haveged.c
@@ -657,8 +657,10 @@ static void run_daemon( /* RETURN: nothing */
if (ioctl(random_fd, RNDADDENTROPY, output) == -1)
error_exit("RNDADDENTROPY failed!");
h->n_entropy_bytes += nbytes;
- if (params->once == 1)
+ if (params->once == 1) {
+ params->exit_code = 0;
error_exit("Entropy refilled once (%d bytes), exiting.", nbytes);
+ }
t[0] = t[1];
continue;
}