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_set_close_on_exit.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'man/sd_bus_set_close_on_exit.xml') diff --git a/man/sd_bus_set_close_on_exit.xml b/man/sd_bus_set_close_on_exit.xml index cf3bbae0b5..5ee34a934a 100644 --- a/man/sd_bus_set_close_on_exit.xml +++ b/man/sd_bus_set_close_on_exit.xml @@ -84,7 +84,7 @@ -ECHILD - The bus connection was created in a different process. + The bus connection was created in a different process, library or module instance. -- cgit v1.2.1