Date: Fri, 25 Mar 2011 20:13:38 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r220005 - head/sbin/hastd Message-ID: <201103252013.p2PKDc7n092115@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pjd Date: Fri Mar 25 20:13:38 2011 New Revision: 220005 URL: http://svn.freebsd.org/changeset/base/220005 Log: Use role2str() when setting process title. MFC after: 1 week Modified: head/sbin/hastd/primary.c head/sbin/hastd/secondary.c Modified: head/sbin/hastd/primary.c ============================================================================== --- head/sbin/hastd/primary.c Fri Mar 25 18:23:10 2011 (r220004) +++ head/sbin/hastd/primary.c Fri Mar 25 20:13:38 2011 (r220005) @@ -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); Modified: head/sbin/hastd/secondary.c ============================================================================== --- head/sbin/hastd/secondary.c Fri Mar 25 18:23:10 2011 (r220004) +++ head/sbin/hastd/secondary.c Fri Mar 25 20:13:38 2011 (r220005) @@ -414,7 +414,7 @@ hastd_secondary(struct hast_resource *re 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103252013.p2PKDc7n092115>