summaryrefslogtreecommitdiff
path: root/man/sd_bus_list_names.xml
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-04-25 00:56:06 +0100
committerLuca Boccassi <bluca@debian.org>2023-04-25 12:24:25 +0100
commitbf876e3f3e7c38635547cd87de7621eb8e3e946c (patch)
tree10ccfddfb8614656d59dce0c7a576360653fc4d2 /man/sd_bus_list_names.xml
parentbf2d930fa12de997920eef493d9fcce1580c4f44 (diff)
downloadsystemd-bf876e3f3e7c38635547cd87de7621eb8e3e946c.tar.gz
sd-bus: store and compare per-module static origin id
sd-bus objects use hashmaps, which use module-global state, so it is not safe to pass a sd-bus object created by a module instance to another module instance (e.g.: when two libraries static linking sd-bus are pulled in a single process). Initialize a random per-module origin id and store it in the object, and compare it when entering a public API, and error out if they don't match, together with the PID.
Diffstat (limited to 'man/sd_bus_list_names.xml')
-rw-r--r--man/sd_bus_list_names.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/man/sd_bus_list_names.xml b/man/sd_bus_list_names.xml
index d8f7e60b7d..998c286663 100644
--- a/man/sd_bus_list_names.xml
+++ b/man/sd_bus_list_names.xml
@@ -79,7 +79,7 @@
<varlistentry>
<term><constant>-ECHILD</constant></term>
- <listitem><para>The bus was created in a different process.</para></listitem>
+ <listitem><para>The bus was created in a different process, library or module instance.</para></listitem>
</varlistentry>
<varlistentry>