projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
null engine: don't dup() stdin anymore
[fio.git]
/
engines
/
null.c
diff --git
a/engines/null.c
b/engines/null.c
index d61685c700ca7c85230c799552f1c81eda8c8162..cd446b99971c5ada0cd283348877203717585217 100644
(file)
--- a/
engines/null.c
+++ b/
engines/null.c
@@
-32,7
+32,6
@@
static int fio_null_setup(struct thread_data *td)
td->total_io_size = td->io_size;
for_each_file(td, f, i) {
td->total_io_size = td->io_size;
for_each_file(td, f, i) {
- f->fd = dup(STDOUT_FILENO);
f->real_file_size = td->total_io_size / td->nr_files;
f->file_size = f->real_file_size;
}
f->real_file_size = td->total_io_size / td->nr_files;
f->file_size = f->real_file_size;
}
@@
-43,6
+42,7
@@
static int fio_null_setup(struct thread_data *td)
static int fio_null_open(struct thread_data fio_unused *td,
struct fio_file fio_unused *f)
{
static int fio_null_open(struct thread_data fio_unused *td,
struct fio_file fio_unused *f)
{
+ f->fd = 0;
return 0;
}
return 0;
}