Use role2str() when setting process title.

MFC after:	1 week
This commit is contained in:
Pawel Jakub Dawidek 2011-03-25 20:13:38 +00:00
parent 6014c8de1d
commit 643080b75f
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);