diff --git a/filesetup.c b/filesetup.c index db80a8b7e28b..ecbe3a5fb41b 100644 --- a/filesetup.c +++ b/filesetup.c @@ -1421,6 +1459,7 @@ void dup_files(struct thread_data *td, struct thread_data *org) assert(0); } __f->fd = -1; + __f->shadow_fd = -1; fio_file_reset(td, __f); if (f->file_name) {