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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user