15 lines
535 B
Diff
15 lines
535 B
Diff
Description: flush output after printing the startup message, to avoid
|
|
confusion of the service "starting up" after receiving sigterm.
|
|
Author: Dimitri John Ledkov <xnox@ubuntu.com>
|
|
|
|
|
|
--- a/src/haveged.c
|
|
+++ b/src/haveged.c
|
|
@@ -655,6 +655,7 @@ static void run_daemon( /* RETURN: no
|
|
havege_reparent(handle);
|
|
}
|
|
else printf ("%s starting up\n", params->daemon);
|
|
+ fflush(NULL);
|
|
if (0 != havege_run(h))
|
|
error_exit("Couldn't initialize HAVEGE rng %d", h->error);
|
|
if (0 != (params->verbose & H_DEBUG_INFO))
|