From 1dc98e400cd9c17edffa8f94f02a38ca1777cef8 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 1 Feb 2023 15:26:57 +0000 Subject: [PATCH] networkd: Fully implement bus handler for Reload Signed-off-by: Michael Tremer --- src/networkd/bus.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/networkd/bus.c b/src/networkd/bus.c index 36ae7c99..56eda876 100644 --- a/src/networkd/bus.c +++ b/src/networkd/bus.c @@ -29,7 +29,13 @@ #include "logging.h" static int nw_bus_daemon_reload(sd_bus_message* m, void* data, sd_bus_error* error) { - return 1; + struct nw_daemon* daemon = (struct nw_daemon*)data; + + // Reload the daemon + nw_daemon_reload(daemon); + + // Respond with an empty message + return sd_bus_reply_method_return(m, NULL); } static int nw_bus_on_connect(sd_bus_message* m, void* data, sd_bus_error* error) { -- 2.47.2