svn commit: r220005 - head/sbin/hastd

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Mar 25 20:13:38 UTC 2011


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


More information about the svn-src-all mailing list