dovecot-2.2: dsync: Make remote's stderr fd nonblocking to avoid...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jan 8 16:24:31 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/2ae4a40b3b24
changeset: 15597:2ae4a40b3b24
user: Timo Sirainen <tss at iki.fi>
date: Tue Jan 08 16:24:20 2013 +0200
description:
dsync: Make remote's stderr fd nonblocking to avoid hanging.
diffstat:
src/doveadm/dsync/doveadm-dsync.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r f0c11f532e3b -r 2ae4a40b3b24 src/doveadm/dsync/doveadm-dsync.c
--- a/src/doveadm/dsync/doveadm-dsync.c Tue Jan 08 10:57:34 2013 +0200
+++ b/src/doveadm/dsync/doveadm-dsync.c Tue Jan 08 16:24:20 2013 +0200
@@ -103,6 +103,8 @@
ctx->fd_in = fd_out[0];
ctx->fd_out = fd_in[1];
ctx->fd_err = fd_err[0];
+
+ fd_set_nonblock(ctx->fd_err, TRUE);
ctx->err_stream = i_stream_create_fd(ctx->fd_err, IO_BLOCK_SIZE, FALSE);
i_stream_set_return_partial_line(ctx->err_stream, TRUE);
}
More information about the dovecot-cvs
mailing list