From b37fa2b4179fe4d8f216e0ac7f6eeecbfd317916 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Tue, 12 Apr 2022 22:16:57 +0200 Subject: [PATCH] Silence process killer at shutdown, too noisy on regular systems On regular desktop systems, like Debian, the dbus-daemon forks off a dbus-launch process to start up things like your desktop for you. This process is not known to Finit and lingers in the background since it's been reparented to init, and to top things off it seems to ignore any SIGTERMs send to it. Obviously this makes a shutdown on such systems very noisy, so this patch changes the print() to a _d() so anyone debugging a system can see it with `-- finit.debug` on the kernel command line, or `initctl debug`. Signed-off-by: Joachim Wiberg --- src/sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sig.c b/src/sig.c index 035907c7..788309d6 100644 --- a/src/sig.c +++ b/src/sig.c @@ -207,7 +207,7 @@ void do_iterate_proc(int (*cb)(int, void *), void *data) _d("Skipping %s ...", &file[1]); else if (cb(pid, data)) { - print(0, "PID %d is still alive (%s)", pid, file); + _d("PID %d is still alive (%s)", pid, file); break; } }