]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: client: Restructured handling of verbose_proctitle setting.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Tue, 10 Oct 2017 00:21:34 +0000 (02:21 +0200)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 7 Dec 2017 23:08:14 +0000 (00:08 +0100)
src/lmtp/client.c

index 0d14e708a7b7ca0a38ca6f610d5a282d79f644c9..c4c86bd51e17374aca64c437b0a1c743c03a898d 100644 (file)
 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++;