]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Fix "service stop" to not print "Interrupted system call" error
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 28 Jun 2019 07:10:50 +0000 (10:10 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 10 Sep 2019 07:01:49 +0000 (10:01 +0300)
The "service stop" handler no longer needs to read the VERSION line.
Broken by 2148805a75abd86d1769d9fd20652551cc5c5ac2

src/doveadm/doveadm-master.c

index 66f39f70dd9e470728ca5fdcd79b930fc537d25a..8e70c83071d569dd58123338c05d94214978f7c2 100644 (file)
@@ -145,8 +145,7 @@ static void cmd_service_stop(struct doveadm_cmd_context *cctx)
                master_service_send_cmd_with_args("STOP", services);
 
        alarm(5);
-       if (i_stream_read_next_line(input) == NULL ||
-           (line = i_stream_read_next_line(input)) == NULL) {
+       if ((line = i_stream_read_next_line(input)) == NULL) {
                i_error("read(%s) failed: %s", i_stream_get_name(input),
                        i_stream_get_error(input));
                doveadm_exit_code = EX_TEMPFAIL;