X Tutup
Skip to content

Commit e30a3ba

Browse files
committed
core: drop "const" from NeedsDaemonReload unit dbus property
It's not "const", it can change any time if people change the fs, and we don#t send out notifications for it. Hence don't claim it was const. (Otherwise clients might cache it, but they should not) Prompted-by: systemd#20792
1 parent bee07a3 commit e30a3ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

man/org.freedesktop.systemd1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,7 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2eservice {
17111711
readonly s OnFailureJobMode = '...';
17121712
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
17131713
readonly b IgnoreOnIsolate = ...;
1714-
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
1714+
@org.freedesktop.DBus.Property.EmitsChangedSignal("false")
17151715
readonly b NeedDaemonReload = ...;
17161716
@org.freedesktop.DBus.Property.EmitsChangedSignal("false")
17171717
readonly as Markers = ['...', ...];

src/core/dbus-unit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ const sd_bus_vtable bus_unit_vtable[] = {
909909
SD_BUS_PROPERTY("OnSuccessJobMode", "s", property_get_job_mode, offsetof(Unit, on_success_job_mode), SD_BUS_VTABLE_PROPERTY_CONST),
910910
SD_BUS_PROPERTY("OnFailureJobMode", "s", property_get_job_mode, offsetof(Unit, on_failure_job_mode), SD_BUS_VTABLE_PROPERTY_CONST),
911911
SD_BUS_PROPERTY("IgnoreOnIsolate", "b", bus_property_get_bool, offsetof(Unit, ignore_on_isolate), SD_BUS_VTABLE_PROPERTY_CONST),
912-
SD_BUS_PROPERTY("NeedDaemonReload", "b", property_get_need_daemon_reload, 0, SD_BUS_VTABLE_PROPERTY_CONST),
912+
SD_BUS_PROPERTY("NeedDaemonReload", "b", property_get_need_daemon_reload, 0, 0),
913913
SD_BUS_PROPERTY("Markers", "as", property_get_markers, offsetof(Unit, markers), 0),
914914
SD_BUS_PROPERTY("JobTimeoutUSec", "t", bus_property_get_usec, offsetof(Unit, job_timeout), SD_BUS_VTABLE_PROPERTY_CONST),
915915
SD_BUS_PROPERTY("JobRunningTimeoutUSec", "t", bus_property_get_usec, offsetof(Unit, job_running_timeout), SD_BUS_VTABLE_PROPERTY_CONST),

0 commit comments

Comments
 (0)
X Tutup