import UBI systemd-252-51.el9_6.1
This commit is contained in:
parent
5e10000b9f
commit
9442ce4fe5
30
SOURCES/1111-unit-always-return-1-in-log_kill.patch
Normal file
30
SOURCES/1111-unit-always-return-1-in-log_kill.patch
Normal file
@ -0,0 +1,30 @@
|
||||
From af95abec0f8abe5dbb53c2d47eba06c0e9473565 Mon Sep 17 00:00:00 2001
|
||||
From: msizanoen1 <msizanoen@qtmlabs.xyz>
|
||||
Date: Tue, 7 Feb 2023 20:17:21 +0700
|
||||
Subject: [PATCH] unit: always return 1 in log_kill
|
||||
|
||||
This ensures that cg_kill_items returns the correct value to let the
|
||||
manager know that a process was killed.
|
||||
|
||||
(cherry picked from commit 500cd2e83b8246fbf20d99db898039cfba746223)
|
||||
|
||||
Resolves: RHEL-86239
|
||||
---
|
||||
src/core/unit.c | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/core/unit.c b/src/core/unit.c
|
||||
index 03eb3aaecf..d98ecf4367 100644
|
||||
--- a/src/core/unit.c
|
||||
+++ b/src/core/unit.c
|
||||
@@ -4542,7 +4542,9 @@ static int log_kill(pid_t pid, int sig, void *userdata) {
|
||||
/* Don't log about processes marked with brackets, under the assumption that these are temporary processes
|
||||
only, like for example systemd's own PAM stub process. */
|
||||
if (comm && comm[0] == '(')
|
||||
- return 0;
|
||||
+ /* Although we didn't log anything, as this callback is used in unit_kill_context we must return 1
|
||||
+ * here to let the manager know that a process was killed. */
|
||||
+ return 1;
|
||||
|
||||
log_unit_notice(userdata,
|
||||
"Killing process " PID_FMT " (%s) with signal SIG%s.",
|
@ -21,7 +21,7 @@
|
||||
Name: systemd
|
||||
Url: https://systemd.io
|
||||
Version: 252
|
||||
Release: 51%{?dist}
|
||||
Release: 51%{?dist}.1
|
||||
# For a breakdown of the licensing, see README
|
||||
License: LGPLv2+ and MIT and GPLv2+
|
||||
Summary: System and Service Manager
|
||||
@ -1193,6 +1193,7 @@ Patch1107: 1107-core-Handle-cgroup-pruning-in-on_cgroup_empty_event.patch
|
||||
Patch1108: 1108-Fix-failing-test.patch
|
||||
Patch1109: 1109-unit-don-t-gc-unit-in-oom-queue.patch
|
||||
Patch1110: 1110-core-do-not-GC-units-jobs-that-are-in-the-D-Bus-queu.patch
|
||||
Patch1111: 1111-unit-always-return-1-in-log_kill.patch
|
||||
|
||||
# Downstream-only patches (9000–9999)
|
||||
|
||||
@ -2070,6 +2071,9 @@ systemd-hwdb update &>/dev/null || :
|
||||
%{_prefix}/lib/dracut/modules.d/70rhel-net-naming-sysattrs/*
|
||||
|
||||
%changelog
|
||||
* Tue Apr 08 2025 systemd maintenance team <systemd-maint@redhat.com> - 252-51.1
|
||||
- unit: always return 1 in log_kill (RHEL-86239)
|
||||
|
||||
* Tue Jan 28 2025 systemd maintenance team <systemd-maint@redhat.com> - 252-51
|
||||
- ci: use ubuntu 22:04 for deploy of man pages (RHEL-70884)
|
||||
- man/tmpfiles: fix off-by-one in example (RHEL-74015)
|
||||
|
Loading…
Reference in New Issue
Block a user