changeset 7615:7c9895192a23 HEAD

If writing to log failed with EAGAIN (shouldn't normally happen), waiting for the log fd to be writable again was buggy.
author Timo Sirainen <tss@iki.fi>
date Sat, 07 Jun 2008 05:10:26 +0300
parents dd899a1841d9
children dcdf6f9e1fc0
files src/lib/failures.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/failures.c	Fri Jun 06 20:08:23 2008 +0300
+++ b/src/lib/failures.c	Sat Jun 07 05:10:26 2008 +0300
@@ -98,7 +98,7 @@
 		/* 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);