summaryrefslogtreecommitdiffstats
path: root/sbin
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
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')
-rw-r--r--sbin/hastd/primary.c2
-rw-r--r--sbin/hastd/secondary.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c
index 966973b..25322c0 100644
--- a/sbin/hastd/primary.c
+++ b/sbin/hastd/primary.c
@@ -868,7 +868,7 @@ hastd_primary(struct hast_resource *res)
pjdlog_init(mode);
pjdlog_debug_set(debuglevel);
pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
- setproctitle("%s (primary)", res->hr_name);
+ setproctitle("%s (%s)", res->hr_name, role2str(res->hr_role));
init_local(res);
init_ggate(res);
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