From 624f685fe8ff1a90370e02faf60d0292a8e01f26 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 9 May 2022 23:43:40 +0200 Subject: [PATCH] core: annotate Reexecute() as NoReply So we're able to tell from the introspection data that the method doesn't reply. --- man/org.freedesktop.systemd1.xml | 1 + src/core/dbus-manager.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/man/org.freedesktop.systemd1.xml b/man/org.freedesktop.systemd1.xml index a1c3e00aab..4d19195165 100644 --- a/man/org.freedesktop.systemd1.xml +++ b/man/org.freedesktop.systemd1.xml @@ -164,6 +164,7 @@ node /org/freedesktop/systemd1 { Dump(out s output); DumpByFileDescriptor(out h fd); Reload(); + @org.freedesktop.DBus.Method.NoReply("true") Reexecute(); @org.freedesktop.systemd1.Privileged("true") Exit(); diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c index a6b2ea2886..e2f21f5e1e 100644 --- a/src/core/dbus-manager.c +++ b/src/core/dbus-manager.c @@ -3083,7 +3083,7 @@ const sd_bus_vtable bus_manager_vtable[] = { NULL, NULL, method_reexecute, - SD_BUS_VTABLE_UNPRIVILEGED), + SD_BUS_VTABLE_UNPRIVILEGED|SD_BUS_VTABLE_METHOD_NO_REPLY), SD_BUS_METHOD("Exit", NULL, NULL,