From d6d73323ed3b98f4beab7f93873d25df0a1e07b6 Mon Sep 17 00:00:00 2001 From: xuraoqing Date: Sat, 21 Jun 2025 02:19:16 +0000 Subject: [PATCH] fix spawn zombie processes Signed-off-by: xuraoqing --- backport-fix-spawn-zombie-processess.patch | 27 ++++++++++++++++++++++ polkit.spec | 6 ++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 backport-fix-spawn-zombie-processess.patch diff --git a/backport-fix-spawn-zombie-processess.patch b/backport-fix-spawn-zombie-processess.patch new file mode 100644 index 0000000..185d6bf --- /dev/null +++ b/backport-fix-spawn-zombie-processess.patch @@ -0,0 +1,27 @@ +From 5cb1baaec56ef0510b32a3ba314406d109803809 Mon Sep 17 00:00:00 2001 +From: lin +Date: Wed, 26 Jun 2024 15:48:56 +0800 +Subject: [PATCH] fix spawn zombie processess + +Reference:https://github.com/polkit-org/polkit/issues/12 +Conflict:NA +--- + src/polkitbackend/polkitbackendcommon.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/polkitbackend/polkitbackendcommon.c b/src/polkitbackend/polkitbackendcommon.c +index 6783dff..1201dd3 100644 +--- a/src/polkitbackend/polkitbackendcommon.c ++++ b/src/polkitbackend/polkitbackendcommon.c +@@ -63,7 +63,8 @@ utils_spawn_data_free (UtilsSpawnData *data) + (GSourceFunc) utils_child_watch_from_release_cb, + source, + (GDestroyNotify) g_source_destroy); +- g_source_attach (source, data->main_context); ++ /* attach source to the global default main context */ ++ g_source_attach (source, NULL); + g_source_unref (source); + data->child_pid = 0; + } +-- +2.33.0 diff --git a/polkit.spec b/polkit.spec index 7a9432d..89abb2b 100644 --- a/polkit.spec +++ b/polkit.spec @@ -1,12 +1,13 @@ Name: polkit Version: 123 -Release: 1 +Release: 2 Summary: Define and Handle authorizations tool License: LGPLv2+ URL: http://www.freedesktop.org/wiki/Software/polkit Source0: https://gitlab.freedesktop.org/polkit/polkit/-/archive/%{version}/%{name}-%{version}.tar.gz Patch0: modify-admin-authorization-from-wheel-group-to-root.patch +Patch1: backport-fix-spawn-zombie-processess.patch BuildRequires: gcc-c++ glib2-devel >= 2.30.0 expat-devel pam-devel gtk-doc gettext-devel BuildRequires: gobject-introspection-devel systemd systemd-devel dbus-devel @@ -122,6 +123,9 @@ exit 0 %{_datadir}/man/man8/* %changelog +* Sat Jun 21 2025 xuraoqing - 122-2 +- fix spawn zombie processes + * Tue Jan 30 2024 wangyu - 123-1 - update to 123 - duktape:prevent wrongful termination of runway thread -- Gitee