]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: iostream-temp is a blocking ostream.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 19 May 2016 12:19:21 +0000 (15:19 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 19 May 2016 12:19:41 +0000 (15:19 +0300)
It goes either to in-memory buffer or to a file.

src/lib/iostream-temp.c

index 2b2462ffee8f374d646c2ffaa553519667cd1176..af29eba06b83e22ec9bcd8d20e195b351db6b8da 100644 (file)
@@ -252,6 +252,7 @@ struct ostream *iostream_temp_create_sized(const char *temp_path_prefix,
        struct ostream *output;
 
        tstream = i_new(struct temp_ostream, 1);
+       tstream->ostream.ostream.blocking = TRUE;
        tstream->ostream.sendv = o_stream_temp_sendv;
        tstream->ostream.send_istream = o_stream_temp_send_istream;
        tstream->ostream.write_at = o_stream_temp_write_at;