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 <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2022-04-12 22:16:57 +02:00
parent a91e197553
commit b37fa2b417
+1 -1
View File
@@ -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;
}
}