X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=init.c;h=e5d776c22f6a13481508a565c2d76671d2475faf;hp=1e0eeccfdc6e5dcbf0b95b0fa479e111108826f6;hb=cade3ef44669c5c962d7ed18ca0e361116ee44ad;hpb=fa1da8653e2177b3cc31a91e963c389f079d4172 diff --git a/init.c b/init.c index 1e0eeccf..e5d776c2 100644 --- 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; }