1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

core: annotate Reexecute() as NoReply

So we're able to tell from the introspection data that the method
doesn't reply.
This commit is contained in:
Frantisek Sumsal 2022-05-09 23:43:40 +02:00 committed by Yu Watanabe
parent ffa3da1dc2
commit 624f685fe8
2 changed files with 2 additions and 1 deletions

View 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();

View 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,