]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: make "close+flush-on-exit" optional when using sd-event with sd-bus
authorLennart Poettering <lennart@poettering.net>
Sat, 6 Oct 2018 16:43:28 +0000 (18:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 9 Nov 2018 16:08:59 +0000 (17:08 +0100)
commitc4e48030cf299b56668b1cd360c4ec93e7f97b20
tree0e428d49887fe74216ad7da03b8af5318d2ad601
parente5c36295d81971ef75d9c6f98f0890b92a4a353f
sd-bus: make "close+flush-on-exit" optional when using sd-event with sd-bus

This adds a new pair of API calls sd_bus_set_close_on_exit() and
sd_bus_get_close_on_exit(). They control whether an sd_bus object
attached to a an sd-event loop shall automatically be flushed/closed
when the event loop goes down. Usually that's a good thing, except for
very few cases where the bus connection is longer living than the event
loop it is attached on. Specifically, this is the case for nspawn, where
we run the event loop only while the container is up, but afterwards
still want to be able to use the bus connection.
man/rules/meson.build
man/sd-bus.xml
man/sd_bus_set_close_on_exit.xml [new file with mode: 0644]
src/libsystemd/libsystemd.sym
src/libsystemd/sd-bus/bus-internal.h
src/libsystemd/sd-bus/sd-bus.c
src/systemd/sd-bus.h