1
0
Fork 0
haveged/debian/patches/debian/0002-flush-startup-output.patch
Daniel Baumann 0c7e2528a1
Refreshing flush-startup-output.patch.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-04-25 17:57:41 +02:00

15 lines
612 B
Diff

Author: Dimitri John Ledkov <xnox@ubuntu.com>
Description: flush output after printing the startup message, to avoid confusion
of the service "starting up" after receiving sigterm.
diff -Naurp haveged.orig/src/haveged.c haveged/src/haveged.c
--- haveged.orig/src/haveged.c
+++ haveged/src/haveged.c
@@ -649,6 +649,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))