]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-event: fix creation of floating event_add_time_change() event sources
authorLennart Poettering <lennart@poettering.net>
Mon, 21 Mar 2022 17:15:42 +0000 (18:15 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 21 Mar 2022 21:57:36 +0000 (21:57 +0000)
commita321e0e4630518c547b42a1854d076a9fbe19a91
treedc839d3ed5c06bc71354476cd787064b67cde5ab
parent94c17d67be2cb6901183ed6896d7a1ccf17422b5
sd-event: fix creation of floating event_add_time_change() event sources

We shouldn't auto-disable event sources we create in "floating" mode.
Hence don#t use the disabling destructor for event sources.

Given that noone else has access to this event source we just allocated
anyway there's no point in explicitly disabling it before freeing it.

Follow-up for ec75e8e07a0ad972e0c40e0a187e15a8d4fb3d66
src/libsystemd/sd-event/event-util.c