Use role2str() when setting process title.
MFC after: 1 week
This commit is contained in:
parent
6014c8de1d
commit
643080b75f
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user