]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
If writing to log failed with EAGAIN (shouldn't normally happen), waiting
authorTimo Sirainen <tss@iki.fi>
Sat, 7 Jun 2008 02:10:26 +0000 (05:10 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 7 Jun 2008 02:10:26 +0000 (05:10 +0300)
for the log fd to be writable again was buggy.

--HG--
branch : HEAD

src/lib/failures.c

index 235fe7f611185a2d1a6f0b0981c103463147a622..d7ed550894c4b6fa34e5d5f4d408a26a9b22390a 100644 (file)
@@ -98,7 +98,7 @@ static int log_fd_write(int fd, const unsigned char *data, unsigned int len)
                /* wait until we can write more. this can happen at least
                   when writing to terminal, even if fd is blocking. */
                ioloop = io_loop_create();
-               io = io_add(IO_WRITE, fd, log_fd_flush_stop, ioloop);
+               io = io_add(fd, IO_WRITE, log_fd_flush_stop, ioloop);
                io_loop_run(ioloop);
                io_remove(&io);
                io_loop_destroy(&ioloop);