Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bench: fix use of fd after close

  • Loading branch information...
commit ed5bad754c1ff5a4544ef8ac6f2eed0261a9aec7 1 parent d85c85a
@bnoordhuis bnoordhuis authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  benchmark/io.c
View
3  benchmark/io.c
@@ -51,7 +51,6 @@ static void writetest(int size, size_t bsize)
exit(254);
}
}
- close(fd);
#ifndef NSYNC
# ifdef __linux__
@@ -61,6 +60,8 @@ static void writetest(int size, size_t bsize)
# endif
#endif /* SYNC */
+ close(fd);
+
end = now();
elapsed = (end - start) / 1e6;
mbps = ((tsize/elapsed)) / 1048576;
Please sign in to comment.
Something went wrong with that request. Please try again.