Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sd-event: store and compare per-module static origin id | Luca Boccassi | 2023-04-25 | 1 | -1/+1 |
| | | | | | | | | | 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. | ||||
* | sd-event: add helper for exiting event loop on SIGTERM/SIGINT | Lennart Poettering | 2022-09-30 | 1 | -0/+101 |
In many (most?) of our event loops we want to exit once SIGTERM/SIGINT is seen. Add a common helper for that, that does the right things in a single call. |