]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: annotate Reexecute() as NoReply
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 9 May 2022 21:43:40 +0000 (23:43 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 10 May 2022 05:16:11 +0000 (14:16 +0900)
So we're able to tell from the introspection data that the method
doesn't reply.

man/org.freedesktop.systemd1.xml
src/core/dbus-manager.c

index a1c3e00aaba4af5af65bbbdbc81b138c57ea2e74..4d191951658459f5f69c573db225d417d15afea7 100644 (file)
@@ -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();
index a6b2ea288664dacbef751a4a440964b2604be8bb..e2f21f5e1e37279a70d5186835497e2202384670 100644 (file)
@@ -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,