dovecot-2.0: auth: If verbose_proctitle=yes, show which processe...

dovecot at dovecot.org dovecot at dovecot.org
Thu Dec 8 18:57:32 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/8ab42b468353
changeset: 12998:8ab42b468353
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Dec 08 18:56:48 2011 +0200
description:
auth: If verbose_proctitle=yes, show which processes are auth workers.

diffstat:

 src/auth/main.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 6d188f4e8e6a -r 8ab42b468353 src/auth/main.c
--- a/src/auth/main.c	Thu Dec 08 05:17:01 2011 +0200
+++ b/src/auth/main.c	Thu Dec 08 18:56:48 2011 +0200
@@ -49,11 +49,16 @@
 
 void auth_refresh_proctitle(void)
 {
+	const char *auth_worker_prefix;
+
 	if (!global_auth_settings->verbose_proctitle)
 		return;
 
+	auth_worker_prefix = worker ? "worker " : "";
+
 	process_title_set(t_strdup_printf(
-		"[%u wait, %u passdb, %u userdb]",
+		"%s[%u wait, %u passdb, %u userdb]",
+		auth_worker_prefix,
 		auth_request_state_count[AUTH_REQUEST_STATE_NEW] +
 		auth_request_state_count[AUTH_REQUEST_STATE_MECH_CONTINUE] +
 		auth_request_state_count[AUTH_REQUEST_STATE_FINISHED],


More information about the dovecot-cvs mailing list