machined,portabled: remove unneeded NOTIFY_STOPPING

This is done internally by bus_event_loop_with_idle().
This commit is contained in:
Mike Yuan
2024-01-09 21:57:45 +08:00
parent b4a85f75b0
commit f359b3073f
3 changed files with 21 additions and 34 deletions
+3 -2
View File
@@ -18,6 +18,7 @@
#include "bus-internal.h"
#include "bus-label.h"
#include "bus-util.h"
#include "daemon-util.h"
#include "data-fd-util.h"
#include "fd-util.h"
#include "memstream-util.h"
@@ -128,8 +129,8 @@ int bus_event_loop_with_idle(
if (r == 0 && !exiting && idle) {
/* Inform the service manager that we are going down, so that it will queue all
* further start requests, instead of assuming we are already running. */
sd_notify(false, "STOPPING=1");
* further start requests, instead of assuming we are still running. */
(void) sd_notify(false, NOTIFY_STOPPING);
r = bus_async_unregister_and_exit(e, bus, name);
if (r < 0)