]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
killall: suppress debug log if some cgroup doesn't have survive_final_kill_signal... 29530/head
authorLennart Poettering <lennart@poettering.net>
Wed, 11 Oct 2023 09:26:25 +0000 (11:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 11 Oct 2023 09:39:48 +0000 (11:39 +0200)
This is the default case, hence really no reason to be noisy about that.

src/shared/killall.c

index 1011cd83d3f89dd33def067f9d030182dd80ee05..ef715dbdfe365d2e8824047e76063941af9e268e 100644 (file)
@@ -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);