summaryrefslogtreecommitdiff
path: root/man/sd_bus_default.xml
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-07-10 11:23:18 -0400
committerDaniel Mack <github@zonque.org>2015-07-10 11:23:18 -0400
commit537c1656c89c137aa09a836f91f9e685c8fdb87d (patch)
treec6125279eb5c5c839bd27b10edc44ac931bf2d07 /man/sd_bus_default.xml
parente6494a07cbbfa93dd83782fa1f8554aa4d2353bd (diff)
parentdb03761e16f945fdc639f88a0c316eeda665980b (diff)
Merge pull request #542 from utezduyar/sd_unref-might-keep-bus-alive
man: sd_unref does not necessarily free the bus
Diffstat (limited to 'man/sd_bus_default.xml')
-rw-r--r--man/sd_bus_default.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/man/sd_bus_default.xml b/man/sd_bus_default.xml
index 95b347bdfd..782dfb5706 100644
--- a/man/sd_bus_default.xml
+++ b/man/sd_bus_default.xml
@@ -219,6 +219,12 @@
one. Use
<citerefentry><refentrytitle>sd_bus_unref</refentrytitle><manvolnum>3</manvolnum></citerefentry>
to drop the reference.</para>
+
+ <para>Queued messages also keep a reference to the bus. For this reason, just
+ because no application is having a reference to the bus does not mean that
+ the bus object will be destroyed. Until all the messages are sent, the bus object
+ will stay alive. <function>sd_bus_flush</function> can be used to send all the
+ queued messages so they drop their references.</para>
</refsect1>
<refsect1>