From: Jens Axboe Date: Tue, 4 Oct 2011 15:32:16 +0000 (+0200) Subject: server: log locally if connection isn't up yet X-Git-Tag: fio-1.99~16 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=5037b845e0936730b5540955be64d9279ac8af9d server: log locally if connection isn't up yet Signed-off-by: Jens Axboe --- diff --git a/server.c b/server.c index 011f3557..57745089 100644 --- 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)