diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-03-26 10:40:01 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-03-26 13:52:33 +0100 |
commit | b377a7cce99ac7aa35061e694550512a16e17cf8 (patch) | |
tree | 7e82a61864d6f9a36bb0e2d0ed7bd0ef57121d74 /src/core/manager.c | |
parent | Merge pull request #29721 from poettering/systemd-project (diff) | |
download | systemd-b377a7cce99ac7aa35061e694550512a16e17cf8.tar.xz systemd-b377a7cce99ac7aa35061e694550512a16e17cf8.zip |
daemon-util: introduce notify_reloading helper
Prompted by #31951
Diffstat (limited to 'src/core/manager.c')
-rw-r--r-- | src/core/manager.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index 7eeb7f3a26..b2d8457790 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -37,6 +37,7 @@ #include "constants.h" #include "core-varlink.h" #include "creds-util.h" +#include "daemon-util.h" #include "dbus-job.h" #include "dbus-manager.h" #include "dbus-unit.h" @@ -3879,9 +3880,7 @@ void manager_send_reloading(Manager *m) { assert(m); /* Let whoever invoked us know that we are now reloading */ - (void) sd_notifyf(/* unset_environment= */ false, - "RELOADING=1\n" - "MONOTONIC_USEC=" USEC_FMT "\n", now(CLOCK_MONOTONIC)); + (void) notify_reloading_full(/* status = */ NULL); /* And ensure that we'll send READY=1 again as soon as we are ready again */ m->ready_sent = false; |