From: Stephan Bosch Date: Tue, 10 Oct 2017 00:21:34 +0000 (+0200) Subject: lmtp: client: Restructured handling of verbose_proctitle setting. X-Git-Tag: 2.3.0.rc1~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7affd5e5e1719e4a36977ecd4d6b6076dfe3ac86;p=thirdparty%2Fdovecot%2Fcore.git lmtp: client: Restructured handling of verbose_proctitle setting. --- diff --git a/src/lmtp/client.c b/src/lmtp/client.c index 0d14e708a7..c4c86bd51e 100644 --- a/src/lmtp/client.c +++ b/src/lmtp/client.c @@ -36,13 +36,15 @@ static struct client *clients = NULL; unsigned int clients_count = 0; +static bool verbose_proctitle = FALSE; + void client_state_set(struct client *client, const char *name, const char *args) { string_t *str; client->state.name = name; - if (!client->service_set->verbose_proctitle) + if (!verbose_proctitle) return; if (clients_count == 0) { @@ -268,6 +270,9 @@ struct client *client_create(int fd_in, int fd_out, client->lhlo = i_strdup("missing"); client->proxy_ttl = LMTP_PROXY_DEFAULT_TTL; + if (client->service_set->verbose_proctitle) + verbose_proctitle = TRUE; + DLLIST_PREPEND(&clients, client); clients_count++;