]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-program-client: Process successful unix connection directly
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 19 Jan 2022 08:16:44 +0000 (09:16 +0100)
committerKarl Fleischmann <karl.fleischmann@open-xchange.com>
Tue, 1 Feb 2022 06:43:03 +0000 (07:43 +0100)
Call program_client_remote_connected() directly instead of adding it to
the io-loop.

src/lib-program-client/program-client-remote.c

index b958d2010acb7ce6d7f4a333e8e6641708f2b40f..aa2a0fb23e2d9411a3f18901aa1b3c0edd2a8e54 100644 (file)
@@ -362,8 +362,7 @@ static int program_client_unix_connect(struct program_client *pclient)
        pclient->fd_in = (prclient->noreply && pclient->output == NULL ?
                          -1 : fd);
        pclient->fd_out = fd;
-       pclient->io = io_add(fd, IO_WRITE,
-                            program_client_remote_connected, prclient);
+       program_client_remote_connected(prclient);
        return 0;
 }