summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-04-22 12:47:20 +0100
committerLuca Boccassi <bluca@debian.org>2023-04-22 17:41:17 +0100
commitf0f7cbd488fd0e00c5b77baf3b1324240fd7d72d (patch)
treef538ebff386fcdcd174dc486d95af8b2c5d3d7d8 /man
parentc6b8fffdfaf1f7c9a1dac73e1e54993a06c766c0 (diff)
downloadsystemd-f0f7cbd488fd0e00c5b77baf3b1324240fd7d72d.tar.gz
man: clarify sd_bus_default
It picks the bus based on the cgroup slice.
Diffstat (limited to 'man')
-rw-r--r--man/sd_bus_default.xml15
1 files changed, 8 insertions, 7 deletions
diff --git a/man/sd_bus_default.xml b/man/sd_bus_default.xml
index 48d9c9a108..8be4254be1 100644
--- a/man/sd_bus_default.xml
+++ b/man/sd_bus_default.xml
@@ -110,13 +110,14 @@
<title>Description</title>
<para><function>sd_bus_default()</function> acquires a bus
- connection object to the user bus when invoked in user context, or
- to the system bus otherwise. The connection object is associated
- with the calling thread. Each time the function is invoked from
- the same thread, the same object is returned, but its reference
- count is increased by one, as long as at least one reference is
- kept. When the last reference to the connection is dropped (using
- the
+ connection object to the user bus when invoked from within a user
+ slice (any session under <literal>user-*.slice</literal>, e.g.:
+ <literal>user@1000.service</literal>), or to the system bus
+ otherwise. The connection object is associated with the calling
+ thread. Each time the function is invoked from the same thread,
+ the same object is returned, but its reference count is increased
+ by one, as long as at least one reference is kept. When the last
+ reference to the connection is dropped (using the
<citerefentry><refentrytitle>sd_bus_unref</refentrytitle><manvolnum>3</manvolnum></citerefentry>
call), the connection is terminated. Note that the connection is
not automatically terminated when the associated thread ends. It