From e411c3014c9635bd5bd56d64c87e8094874ddffe Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 13 Oct 2014 11:57:15 -0600 Subject: [PATCH] backend: use log_info_flush(), not fflush() f_out may not be stdout, so use the appropriate wrapper that flushes the appropriate FILE (or nothing, if nothing needs to be done). Signed-off-by: Jens Axboe --- backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend.c b/backend.c index 981625b6..3016e986 100644 --- a/backend.c +++ b/backend.c @@ -87,7 +87,7 @@ static void sig_int(int sig) fio_server_got_signal(sig); else { log_info("\nfio: terminating on signal %d\n", sig); - fflush(stdout); + log_info_flush(); exit_value = 128; } @@ -1763,7 +1763,7 @@ static void run_threads(void) nr_process > 1 ? "es" : ""); } log_info("\n"); - fflush(stdout); + log_info_flush(); } todo = thread_number; -- 2.25.1