Make sure the ->files array is job private
[fio.git] / init.c
diff --git a/init.c b/init.c
index 1e0eecc..e5d776c 100644 (file)
--- a/init.c
+++ b/init.c
@@ -115,6 +115,8 @@ static struct thread_data *get_new_job(int global, struct thread_data *parent)
        td = &threads[thread_number++];
        *td = *parent;
 
+       dup_files(td, parent);
+
        td->thread_number = thread_number;
        return td;
 }