From: Aki Tuomi Date: Wed, 19 Jan 2022 08:16:44 +0000 (+0100) Subject: lib-program-client: Process successful unix connection directly X-Git-Tag: 2.4.0~4587 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1aab6284d25b7c58073394883b2c3235f78af86b;p=thirdparty%2Fdovecot%2Fcore.git lib-program-client: Process successful unix connection directly Call program_client_remote_connected() directly instead of adding it to the io-loop. --- diff --git a/src/lib-program-client/program-client-remote.c b/src/lib-program-client/program-client-remote.c index b958d2010a..aa2a0fb23e 100644 --- a/src/lib-program-client/program-client-remote.c +++ b/src/lib-program-client/program-client-remote.c @@ -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; }