From 6fd38dc83ad5ae99355280ab81925d52fdfec038 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 11 Oct 2023 11:26:25 +0200 Subject: [PATCH] killall: suppress debug log if some cgroup doesn't have survive_final_kill_signal xattr set This is the default case, hence really no reason to be noisy about that. --- src/shared/killall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/killall.c b/src/shared/killall.c index 1011cd83d3f..ef715dbdfe3 100644 --- a/src/shared/killall.c +++ b/src/shared/killall.c @@ -60,7 +60,7 @@ static bool is_survivor_cgroup(pid_t pid) { /* user xattr support was added to kernel v5.7, try with the trusted namespace as a fallback */ if (ERRNO_IS_NEG_XATTR_ABSENT(r)) r = cg_get_xattr_bool(cgroup_path, "trusted.survive_final_kill_signal"); - if (r < 0) + if (r < 0 && !ERRNO_IS_NEG_XATTR_ABSENT(r)) log_debug_errno(r, "Failed to get survive_final_kill_signal xattr of %s, ignoring: %m", cgroup_path); -- 2.47.3