mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
man: clarify sd_bus_default
It picks the bus based on the cgroup slice. (cherry picked from commitf0f7cbd488
) (cherry picked from commit5a8987794e
) (cherry picked from commita9e44da6b1
)
This commit is contained in:
parent
ce99445126
commit
b1f2d0da63
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user