commit | 4db205dc7c0195cacc949cfbc461350ca6ec74b0 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Tue Apr 01 12:28:15 2014 -0600 |
committer | Jens Axboe <axboe@fb.com> | Tue Apr 01 12:28:15 2014 -0600 |
tree | 302d9cc16b33441a4c39323d9d82193ed1ac598a | |
parent | ece6d647df9a5885ce5325e3e66e4c65d8180e61 [diff] [blame] |
Properly initialize shadow_fd to -1 We forget that in one case, causing all sorts of issues when we end up closing this bogus (STDIN) descriptor. Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/filesetup.c b/filesetup.c index db80a8b..fd55cc4 100644 --- a/filesetup.c +++ b/filesetup.c
@@ -1421,6 +1421,7 @@ assert(0); } __f->fd = -1; + __f->shadow_fd = -1; fio_file_reset(td, __f); if (f->file_name) {