From 3ba7c7b5e18e9adc38e54a9900f9b5cb7fbb0d0d Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 10 Nov 2021 10:57:18 +0100 Subject: [PATCH] MINOR: mworker: ReloadFailed shown depending on failedreload The ReloadFailed prompt in the master CLI is shown only when failedreloads > 0. It was previously using a check on the wait mode, but we always use the wait mode now. --- src/cli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli.c b/src/cli.c index 36d11a4ac..ec5283f27 100644 --- a/src/cli.c +++ b/src/cli.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -2067,7 +2068,7 @@ void pcli_write_prompt(struct stream *s) } else { if (s->pcli_next_pid == 0) chunk_appendf(msg, "master%s> ", - (global.mode & MODE_MWORKER_WAIT) ? "[ReloadFailed]" : ""); + (proc_self->failedreloads > 0) ? "[ReloadFailed]" : ""); else chunk_appendf(msg, "%d> ", s->pcli_next_pid); }