summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-event/sd-event.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-05-18 17:05:41 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-05-18 17:20:15 +0200
commited7a6f51eab5af40d3d7884ce846f74aea0c00f0 (patch)
treea1ee98d795f4208556bf1d0f5aa7777b34bd814c /src/libsystemd/sd-event/sd-event.c
parentsd-bus: do not assert if bus description is not set (diff)
downloadsystemd-ed7a6f51eab5af40d3d7884ce846f74aea0c00f0.tar.xz
systemd-ed7a6f51eab5af40d3d7884ce846f74aea0c00f0.zip
sd-bus,sd-event: allow querying of description even after fork
This in unnecessarilly unpleasant: the code might report about a bus connection, e.g. in an error message or assert. Let's let it query the name of the object. This partially reverts f4b2933ee7890e5d414ab266d8586f19027a2bd9.
Diffstat (limited to '')
-rw-r--r--src/libsystemd/sd-event/sd-event.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
index 73731294fb..1224654290 100644
--- a/src/libsystemd/sd-event/sd-event.c
+++ b/src/libsystemd/sd-event/sd-event.c
@@ -2603,7 +2603,6 @@ _public_ int sd_event_source_set_description(sd_event_source *s, const char *des
_public_ int sd_event_source_get_description(sd_event_source *s, const char **description) {
assert_return(s, -EINVAL);
assert_return(description, -EINVAL);
- assert_return(!event_origin_changed(s->event), -ECHILD);
if (!s->description)
return -ENXIO;