dovecot-2.1: auth: If verbose_proctitle=yes, show which processe...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Dec 8 18:57:15 EET 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/ec3714f01ef2
changeset: 13830:ec3714f01ef2
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 b5056baa6193 -r ec3714f01ef2 src/auth/main.c
--- a/src/auth/main.c Thu Dec 08 11:45:04 2011 +0200
+++ b/src/auth/main.c Thu Dec 08 18:56:48 2011 +0200
@@ -57,11 +57,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