]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: introduce new sd_bus_default_flush_close() call 1334/head
authorLennart Poettering <lennart@poettering.net>
Tue, 22 Sep 2015 12:13:10 +0000 (14:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 Sep 2015 14:29:10 +0000 (16:29 +0200)
commitfa2f8973adf9cfb6cc2a69bcfe209b125ee3a3ce
treeb7ad811da7c64eac842f158f4297dd2545f3e35c
parentc97e586d8a18db5dc505d76059ed1d9add234925
sd-bus: introduce new sd_bus_default_flush_close() call

If code enqueues a message on one of the default busses, but doesn't
sync on it, and immediately drops the reference to the bus again, it
will stay queued and consume memory. Intrdouce a new call
sd_bus_default_flush_close() that can be invoked at the end of programs
(or threads) and flushes out all unsent messages on any of the default
busses.
src/libsystemd/libsystemd.sym
src/libsystemd/sd-bus/sd-bus.c
src/systemctl/systemctl.c
src/systemd/sd-bus.h