diff src/auth/auth-settings.c @ 11251:6243376eff60 HEAD

auth: If verbose_proctitle=yes, show auth request counts in ps. - wait: waiting for auth client to do something (either continue multistep auth mechanism or issue master request for a finished auth) - passdb: waiting for passdb lookup to finish - userdb: waiting for userdb lookup to finish
author Timo Sirainen <tss@iki.fi>
date Mon, 03 May 2010 16:58:36 +0300
parents 7d7540af8446
children 1a3c9bd45b11
line wrap: on
line diff
--- a/src/auth/auth-settings.c	Mon May 03 16:11:30 2010 +0300
+++ b/src/auth/auth-settings.c	Mon May 03 16:58:36 2010 +0300
@@ -160,9 +160,12 @@
 
 /* we're kind of kludging here to avoid "auth_" prefix in the struct fields */
 #undef DEF
+#undef DEF_NOPREFIX
 #undef DEFLIST
 #define DEF(type, name) \
 	{ type, "auth_"#name, offsetof(struct auth_settings, name), NULL }
+#define DEF_NOPREFIX(type, name) \
+	{ type, #name, offsetof(struct auth_settings, name), NULL }
 #define DEFLIST(field, name, defines) \
 	{ SET_DEFLIST, name, offsetof(struct auth_settings, field), defines }
 
@@ -196,6 +199,8 @@
 	DEFLIST(passdbs, "passdb", &auth_passdb_setting_parser_info),
 	DEFLIST(userdbs, "userdb", &auth_userdb_setting_parser_info),
 
+	DEF_NOPREFIX(SET_BOOL, verbose_proctitle),
+
 	SETTING_DEFINE_LIST_END
 };
 
@@ -227,7 +232,9 @@
 	.worker_max_count = 30,
 
 	.passdbs = ARRAY_INIT,
-	.userdbs = ARRAY_INIT
+	.userdbs = ARRAY_INIT,
+
+	.verbose_proctitle = FALSE
 };
 
 const struct setting_parser_info auth_setting_parser_info = {