server: log locally if connection isn't up yet
authorJens Axboe <axboe@kernel.dk>
Tue, 4 Oct 2011 15:32:16 +0000 (17:32 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Oct 2011 15:32:16 +0000 (17:32 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
server.c

index 011f355733ee27040563ae9173dc3d49d33a4922..57745089becc04675969132e63604189b0069451 100644 (file)
--- a/server.c
+++ b/server.c
@@ -456,7 +456,7 @@ int fio_server_text_output(const char *buf, unsigned int len)
        if (server_fd != -1)
                return fio_net_send_cmd(server_fd, FIO_NET_CMD_TEXT, buf, len);
 
-       return 0;
+       return fwrite(buf, len, 1, f_err);
 }
 
 static void convert_io_stat(struct io_stat *dst, struct io_stat *src)