|
Adam Williamson |
706be6 |
From 2dc1f85de96194922df41d819cf5077436710508 Mon Sep 17 00:00:00 2001
|
|
Adam Williamson |
706be6 |
From: Adam Williamson <awilliam@redhat.com>
|
|
Adam Williamson |
706be6 |
Date: Tue, 15 Oct 2019 17:01:02 -0700
|
|
Adam Williamson |
706be6 |
Subject: [PATCH] Revert "Fully shutdown DBUS on systemd_inhibit cleanup
|
|
Adam Williamson |
706be6 |
(RhBug:1714657)"
|
|
Adam Williamson |
706be6 |
|
|
Adam Williamson |
706be6 |
This reverts commit d5f201345f6d27b6280750e5c6502f4418614fbc.
|
|
Adam Williamson |
706be6 |
It causes problems for dnfdaemon because it uses dbus itself,
|
|
Adam Williamson |
706be6 |
and the RPM python bindings; in some circumstances the plugin's
|
|
Adam Williamson |
706be6 |
cleanup routine is triggered and the `dbus_shutdown()` call
|
|
Adam Williamson |
706be6 |
causes dnfdaemon to crash the next time it tries to use dbus
|
|
Adam Williamson |
706be6 |
itself.
|
|
Adam Williamson |
706be6 |
---
|
|
Adam Williamson |
706be6 |
plugins/systemd_inhibit.c | 6 ------
|
|
Adam Williamson |
706be6 |
1 file changed, 6 deletions(-)
|
|
Adam Williamson |
706be6 |
|
|
Adam Williamson |
706be6 |
diff --git a/plugins/systemd_inhibit.c b/plugins/systemd_inhibit.c
|
|
Adam Williamson |
706be6 |
index 9cb722761..0ddca9cd8 100644
|
|
Adam Williamson |
706be6 |
--- a/plugins/systemd_inhibit.c
|
|
Adam Williamson |
706be6 |
+++ b/plugins/systemd_inhibit.c
|
|
Adam Williamson |
706be6 |
@@ -82,11 +82,6 @@ static rpmRC systemd_inhibit_init(rpmPlugin plugin, rpmts ts)
|
|
Adam Williamson |
706be6 |
return RPMRC_NOTFOUND;
|
|
Adam Williamson |
706be6 |
}
|
|
Adam Williamson |
706be6 |
|
|
Adam Williamson |
706be6 |
-static void systemd_inhibit_cleanup(rpmPlugin plugin)
|
|
Adam Williamson |
706be6 |
-{
|
|
Adam Williamson |
706be6 |
- dbus_shutdown();
|
|
Adam Williamson |
706be6 |
-}
|
|
Adam Williamson |
706be6 |
-
|
|
Adam Williamson |
706be6 |
static rpmRC systemd_inhibit_tsm_pre(rpmPlugin plugin, rpmts ts)
|
|
Adam Williamson |
706be6 |
{
|
|
Adam Williamson |
706be6 |
if (rpmtsFlags(ts) & (RPMTRANS_FLAG_TEST|RPMTRANS_FLAG_BUILD_PROBS))
|
|
Adam Williamson |
706be6 |
@@ -113,7 +108,6 @@ static rpmRC systemd_inhibit_tsm_post(rpmPlugin plugin, rpmts ts, int res)
|
|
Adam Williamson |
706be6 |
|
|
Adam Williamson |
706be6 |
struct rpmPluginHooks_s systemd_inhibit_hooks = {
|
|
Adam Williamson |
706be6 |
.init = systemd_inhibit_init,
|
|
Adam Williamson |
706be6 |
- .cleanup = systemd_inhibit_cleanup,
|
|
Adam Williamson |
706be6 |
.tsm_pre = systemd_inhibit_tsm_pre,
|
|
Adam Williamson |
706be6 |
.tsm_post = systemd_inhibit_tsm_post,
|
|
Adam Williamson |
706be6 |
};
|
|
Adam Williamson |
706be6 |
--
|
|
Adam Williamson |
706be6 |
2.23.0
|
|
Adam Williamson |
706be6 |
|