From 2eeff0f4f1af40eb0c22d869c50eb364e2a5d489 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 25 Apr 2023 01:46:22 +0100 Subject: sd-event: store and compare per-module static origin id sd-event objects use hashmaps, which use module-global state, so it is not safe to pass a sd-event object created by a module instance to another module instance (e.g.: when two libraries static linking sd-event 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_event_add_signal.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'man/sd_event_add_signal.xml') diff --git a/man/sd_event_add_signal.xml b/man/sd_event_add_signal.xml index 3e8536e961..29a7823974 100644 --- a/man/sd_event_add_signal.xml +++ b/man/sd_event_add_signal.xml @@ -165,7 +165,7 @@ -ECHILD - The event loop has been created in a different process. + The event loop has been created in a different process, library or module instance. -- cgit v1.2.1