daemon-util: Rename starting/stopping message constants

Currently, NOTIFY_READY from daemon-util.h conflicts with NOTIFY_READY
from NotifyState from service.h so let's rename the constants to avoid
the conflict.
This commit is contained in:
Daan De Meyer
2025-05-01 14:02:17 +02:00
parent a40f6dd4d8
commit 792a8bfb8a
29 changed files with 32 additions and 32 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ int bus_event_loop_with_idle(
/* Inform the service manager that we are going down, so that it will queue all
* further start requests, instead of assuming we are still running. */
(void) sd_notify(false, NOTIFY_STOPPING);
(void) sd_notify(false, NOTIFY_STOPPING_MESSAGE);
r = bus_async_unregister_and_exit(e, bus, name);
if (r < 0)
+2 -2
View File
@@ -7,8 +7,8 @@
#include "macro.h"
#define NOTIFY_READY "READY=1\n" "STATUS=Processing requests..."
#define NOTIFY_STOPPING "STOPPING=1\n" "STATUS=Shutting down..."
#define NOTIFY_READY_MESSAGE "READY=1\n" "STATUS=Processing requests..."
#define NOTIFY_STOPPING_MESSAGE "STOPPING=1\n" "STATUS=Shutting down..."
static inline const char* notify_start(const char *start, const char *stop) {
if (start)