9fc3254595
- Update of patch 0001-detect-s390-virt.patch (bnc#880438) - Shut up stupid check scripts crying for not mentioned systemd-mini-rpmlintrc - Add upstream patchs 0001-core-use-correct-format-string-for-UIDs.patch 0002-core-transaction-fix-cycle-break-attempts-outside-tr.patch 0003-fsck-consider-a-fsck-implementation-linked-to-bin-tr.patch - Add upstream patch 0001-units-order-network-online.target-after-network.targ.patch to make sure that etwork-online.target follows network.target - rules: re-enable dev_id conditionally in persistent rules (bnc#884403 and bnc#882714). Add 1040-re-enable-dev_id-conditionally-in-persistent-rules.patch - Add upstream patches 0001-vconsole-also-copy-character-maps-not-just-fonts-fro.patch 0002-core-make-sure-Environment-fields-passed-in-for-tran.patch 0003-core-You-can-not-put-the-cached-result-of-use_smack-.patch 0004-cryptsetup-don-t-add-unit-dependency-on-dev-null-dev.patch 0005-man-fix-path-in-crypttab-5.patch - Add upstream patch 1039-udevadm-settle-fixed-return-code-for-empty-queue.patch it fixes udevadm settle exit code which may had roken dracut scripts (bnc#884271 comment#18) - Temporary disable patch 1022 (bnc#884271 and bnc#882714). OBS-URL: https://build.opensuse.org/request/show/238853 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=190
60 lines
1.9 KiB
Diff
60 lines
1.9 KiB
Diff
From b27adf354a83ad25f4a209c0a6f7989ecab7b4e2 Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Thu, 5 Jun 2014 13:31:25 +0200
|
|
Subject: [PATCH] bus: make use of sd_bus_try_close() in exit-on-idle services
|
|
|
|
---
|
|
src/libsystemd/sd-bus/bus-util.c | 25 +++++++++++++++++++++++--
|
|
1 file changed, 23 insertions(+), 2 deletions(-)
|
|
|
|
diff --git src/libsystemd/sd-bus/bus-util.c src/libsystemd/sd-bus/bus-util.c
|
|
index 6bd21cc..6441c5b 100644
|
|
--- src/libsystemd/sd-bus/bus-util.c
|
|
+++ src/libsystemd/sd-bus/bus-util.c
|
|
@@ -43,7 +43,9 @@ static int name_owner_change_callback(sd_bus *bus, sd_bus_message *m, void *user
|
|
assert(m);
|
|
assert(e);
|
|
|
|
+ sd_bus_close(bus);
|
|
sd_event_exit(e, 0);
|
|
+
|
|
return 1;
|
|
}
|
|
|
|
@@ -121,11 +123,30 @@ int bus_event_loop_with_idle(
|
|
return r;
|
|
|
|
if (r == 0 && !exiting) {
|
|
- r = bus_async_unregister_and_exit(e, bus, name);
|
|
+
|
|
+ r = sd_bus_try_close(bus);
|
|
+ if (r == -EBUSY)
|
|
+ continue;
|
|
+
|
|
+ if (r == -ENOTSUP) {
|
|
+ /* Fallback for dbus1 connections: we
|
|
+ * unregister the name and wait for
|
|
+ * the response to come through for
|
|
+ * it */
|
|
+
|
|
+ r = bus_async_unregister_and_exit(e, bus, name);
|
|
+ if (r < 0)
|
|
+ return r;
|
|
+
|
|
+ exiting = true;
|
|
+ continue;
|
|
+ }
|
|
+
|
|
if (r < 0)
|
|
return r;
|
|
|
|
- exiting = true;
|
|
+ sd_event_exit(e, 0);
|
|
+ break;
|
|
}
|
|
}
|
|
|
|
--
|
|
1.7.9.2
|
|
|