1
0
Fork 0

Adding patch to flush output after printing the startup message, to avoid confusion of the service "starting up" after receiving sigterm.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Dimitri John Ledkov 2025-04-25 17:53:38 +02:00 committed by Daniel Baumann
parent 3d7eb32e92
commit 59c3ee7cda
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,15 @@
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))

View file

@ -1 +1,2 @@
debian/0001-shm-directory.patch
flush-startup-output.patch