backend: use log_info_flush(), not fflush()
authorJens Axboe <axboe@fb.com>
Mon, 13 Oct 2014 17:57:15 +0000 (11:57 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 13 Oct 2014 17:57:15 +0000 (11:57 -0600)
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 <axboe@fb.com>
backend.c

index 981625b61095dd42995d32291ec3fdc4b58cb597..3016e9866b966a0c134db161002ac1c744d34104 100644 (file)
--- 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);
                        fio_server_got_signal(sig);
                else {
                        log_info("\nfio: terminating on signal %d\n", sig);
-                       fflush(stdout);
+                       log_info_flush();
                        exit_value = 128;
                }
 
                        exit_value = 128;
                }
 
@@ -1763,7 +1763,7 @@ static void run_threads(void)
                                                nr_process > 1 ? "es" : "");
                }
                log_info("\n");
                                                nr_process > 1 ? "es" : "");
                }
                log_info("\n");
-               fflush(stdout);
+               log_info_flush();
        }
 
        todo = thread_number;
        }
 
        todo = thread_number;