From bd36a4d30773a6f8d3e352d595a26317f5437b17 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 19 Mar 2016 19:30:10 +0100 Subject: [PATCH] daemon: append a dot after process title It seems that systemd is eating one character. Add a dot for padding. --- src/daemon/lldpd.c | 6 +++--- src/daemon/priv.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/daemon/lldpd.c b/src/daemon/lldpd.c index b0c93ccd..829520a4 100644 --- a/src/daemon/lldpd.c +++ b/src/daemon/lldpd.c @@ -320,11 +320,11 @@ lldpd_count_neighbors(struct lldpd *cfg) } neighbors--; if (neighbors == 0) - setproctitle("no neighbor"); + setproctitle("no neighbor."); else if (neighbors == 1 && neighbor && *neighbor != '\0') - setproctitle("connected to %s", neighbor); + setproctitle("connected to %s.", neighbor); else - setproctitle("%d neighbor%s", neighbors, + setproctitle("%d neighbor%s.", neighbors, (neighbors > 1)?"s":""); #endif lldpd_display_neighbors(cfg); diff --git a/src/daemon/priv.c b/src/daemon/priv.c index 321e365b..c37685a0 100644 --- a/src/daemon/priv.c +++ b/src/daemon/priv.c @@ -406,7 +406,7 @@ priv_loop(int privileged, int once) struct dispatch_actions *a; #ifdef ENABLE_PRIVSEP - setproctitle("monitor"); + setproctitle("monitor."); #ifdef USE_SECCOMP if (priv_seccomp_init(privileged, monitored) != 0) fatal("privsep", "cannot continue without seccomp setup"); -- 2.39.5