From: Jens Axboe Date: Mon, 13 Oct 2014 17:57:15 +0000 (-0600) Subject: backend: use log_info_flush(), not fflush() X-Git-Tag: fio-2.1.14~61 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=e411c3014c9635bd5bd56d64c87e8094874ddffe 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 --- 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;