diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2012-08-18 18:18:24 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2012-08-18 18:18:24 +0000 |
commit | 9228f249a15e8408c65a9892fe8c9d845c867714 (patch) | |
tree | bbf9e12e35607c9a3c09a8c68ea4650040b414eb /usr.sbin/smtpd/lka.c | |
parent | 3da4234ae91599a538335d99a70e54983df19d04 (diff) |
- introduce stat_backend, an API for pluggable statistic backends
> statistics are no longer static structures in shared memory
> statistics are only set, smtpd never uses them in its logic
> each statistic is a key/value where key can be any (dynamic) string
- convert all uses of the former API to use the new one
- implement stat_ramstat that keeps non-persistent stats in ram structure
ok eric@, ok chl@
Diffstat (limited to 'usr.sbin/smtpd/lka.c')
-rw-r--r-- | usr.sbin/smtpd/lka.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/lka.c b/usr.sbin/smtpd/lka.c index 169662dd521..1e1bae88ee9 100644 --- a/usr.sbin/smtpd/lka.c +++ b/usr.sbin/smtpd/lka.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka.c,v 1.133 2012/05/12 15:31:43 gilles Exp $ */ +/* $OpenBSD: lka.c,v 1.134 2012/08/18 18:18:23 gilles Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -256,7 +256,8 @@ lka(void) { PROC_MFA, imsg_dispatch }, { PROC_QUEUE, imsg_dispatch }, { PROC_SMTP, imsg_dispatch }, - { PROC_MTA, imsg_dispatch } + { PROC_MTA, imsg_dispatch }, + { PROC_CONTROL, imsg_dispatch } }; switch (pid = fork()) { |