From: Vincent Bernat Date: Sat, 19 Mar 2016 18:30:10 +0000 (+0100) Subject: daemon: append a dot after process title X-Git-Tag: 0.9.3~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fcoverity_scan;p=thirdparty%2Flldpd.git daemon: append a dot after process title It seems that systemd is eating one character. Add a dot for padding. --- 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");