From bd887a75d4a306bc51a1e2d357d69035711007de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 17 Feb 2025 18:12:01 +0100 Subject: [PATCH] man/org.freedesktop.systemd1.xml: Clarify the behavior of Subscribe() It was unclear that it was applied to standard signals too, and this lead to unexpected behavior. See: https://github.com/systemd/systemd/pull/36366 --- man/org.freedesktop.systemd1.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/man/org.freedesktop.systemd1.xml b/man/org.freedesktop.systemd1.xml index 1342419947405..5e1c3e2c08edd 100644 --- a/man/org.freedesktop.systemd1.xml +++ b/man/org.freedesktop.systemd1.xml @@ -1434,7 +1434,12 @@ node /org/freedesktop/systemd1 { Subscribe() enables most bus signals to be sent out. Clients which are interested in signals need to call this method. Signals are only sent out if at least one client - invoked this method. Unsubscribe() reverts the signal subscription that + invoked this method. Note that this behavior is applied to all the signals that the object + in /org/freedesktop/systemd1 may emit, including the + D-Bus standard org.freedesktop.DBus.Properties.PropertiesChanged + signal and others that do not belong to the org.freedesktop.systemd1 interface. + + Unsubscribe() reverts the signal subscription that Subscribe() implements. It is not necessary to invoke Unsubscribe() as clients are tracked. Signals are no longer sent out as soon as all clients which previously asked for Subscribe() either closed their connection