summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/secondary.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-03-25 20:13:38 +0000
committerpjd <pjd@FreeBSD.org>2011-03-25 20:13:38 +0000
commitf6f9894d9f38649f73702b3f122ff034eee36dbe (patch)
treebc28dab0d53c071d682e8824366bb0d19518181e /sbin/hastd/secondary.c
parent15ff949f29fb67c87a63a332b0078a87a5bf9027 (diff)
downloadFreeBSD-src-f6f9894d9f38649f73702b3f122ff034eee36dbe.zip
FreeBSD-src-f6f9894d9f38649f73702b3f122ff034eee36dbe.tar.gz
Use role2str() when setting process title.
MFC after: 1 week
Diffstat (limited to 'sbin/hastd/secondary.c')
-rw-r--r--sbin/hastd/secondary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/secondary.c b/sbin/hastd/secondary.c
index 714588f..10c3cab 100644
--- a/sbin/hastd/secondary.c
+++ b/sbin/hastd/secondary.c
@@ -414,7 +414,7 @@ hastd_secondary(struct hast_resource *res, struct nv *nvin)
pjdlog_init(mode);
pjdlog_debug_set(debuglevel);
pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
- setproctitle("%s (secondary)", res->hr_name);
+ setproctitle("%s (%s)", res->hr_name, role2str(res->hr_role));
PJDLOG_VERIFY(sigemptyset(&mask) == 0);
PJDLOG_VERIFY(sigprocmask(SIG_SETMASK, &mask, NULL) == 0);
OpenPOWER on IntegriCloud