diff options
author | Luca Boccassi <bluca@debian.org> | 2023-04-25 02:46:22 +0200 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2023-04-25 13:24:25 +0200 |
commit | 2eeff0f4f1af40eb0c22d869c50eb364e2a5d489 (patch) | |
tree | f597ff1036eedf1023ff3a1ed538a5e7c5e2f5ae /man/sd_event_add_inotify.xml | |
parent | sd-journal: store and compare per-module static origin id (diff) | |
download | systemd-2eeff0f4f1af40eb0c22d869c50eb364e2a5d489.tar.xz systemd-2eeff0f4f1af40eb0c22d869c50eb364e2a5d489.zip |
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.
Diffstat (limited to 'man/sd_event_add_inotify.xml')
-rw-r--r-- | man/sd_event_add_inotify.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man/sd_event_add_inotify.xml b/man/sd_event_add_inotify.xml index c7af7bdcd0..1f31907b0d 100644 --- a/man/sd_event_add_inotify.xml +++ b/man/sd_event_add_inotify.xml @@ -170,7 +170,7 @@ <varlistentry> <term><constant>-ECHILD</constant></term> - <listitem><para>The event loop has been created in a different process.</para></listitem> + <listitem><para>The event loop has been created in a different process, library or module instance.</para></listitem> </varlistentry> |