From bf876e3f3e7c38635547cd87de7621eb8e3e946c Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 25 Apr 2023 00:56:06 +0100 Subject: 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. --- man/sd_bus_list_names.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'man/sd_bus_list_names.xml') 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 @@ -ECHILD - The bus was created in a different process. + The bus was created in a different process, library or module instance. -- cgit v1.2.1