ETA no longer works when -o specified
[fio.git] / init.c
diff --git a/init.c b/init.c
index 4c5a8dd8ebab33bd28bb6c1a6b12864910cb7aff..a5468615eafecb7aba579b9da9162bc52c0e598d 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1739,7 +1739,7 @@ int parse_cmd_line(int argc, char *argv[], int client_type)
                        write_bw_log = 1;
                        break;
                case 'o':
                        write_bw_log = 1;
                        break;
                case 'o':
-                       if (f_out)
+                       if (f_out && f_out != stdout)
                                fclose(f_out);
 
                        f_out = fopen(optarg, "w+");
                                fclose(f_out);
 
                        f_out = fopen(optarg, "w+");