]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-program-client: remote: Always shut down the output when all is written.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 25 Feb 2018 16:46:55 +0000 (17:46 +0100)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Sun, 18 Mar 2018 10:53:18 +0000 (12:53 +0200)
Before, this step was omitted when dot streams were used. However, shutting down
the output is necessary no matter what. Otherwise, the receiving end will not
see that no more input will follow, causing deadlock.

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

index 110e4d7947f697d458130ed4ead288238c1b4852..6e5a1d9ee03901b007994584555e162a66d90e0a 100644 (file)
@@ -527,8 +527,6 @@ program_client_remote_close_output(struct program_client *pclient)
        int fd_out = pclient->fd_out, fd_in = pclient->fd_in;
 
        pclient->fd_out = -1;
-       if (fd_out >= 0 && pclient->set.use_dotstream)
-               return 1;
 
        /* Shutdown output; program stdin will get EOF */
        if (fd_out >= 0) {