summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-08-20 12:49:09 +0000
committerpjd <pjd@FreeBSD.org>2004-08-20 12:49:09 +0000
commitbd124ccfb5e0a965f087bfdacb66fd1166d43e56 (patch)
tree434672da371b630cc062c24c87c28ff4211f73f0 /tools
parent7ee655e7b6917512cbedc9bcbe47d40b140e5f43 (diff)
downloadFreeBSD-src-bd124ccfb5e0a965f087bfdacb66fd1166d43e56.zip
FreeBSD-src-bd124ccfb5e0a965f087bfdacb66fd1166d43e56.tar.gz
- fflush() standard output before fork()ing.
- Remove redundant 'break'.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/raidtest/raidtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/tools/raidtest/raidtest.c b/tools/tools/raidtest/raidtest.c
index d41c103..f5eb962 100644
--- a/tools/tools/raidtest/raidtest.c
+++ b/tools/tools/raidtest/raidtest.c
@@ -358,12 +358,13 @@ raidtest_test(int argc, char *argv[])
break;
}
}
+ close(fdf);
printf("Read %ju requests from %s.\n", nreqs, file);
printf("Number of READ requests: %ju.\n", nrreqs);
printf("Number of WRITE requests: %ju.\n", nwreqs);
printf("Number of bytes to transmit: %ju.\n", nbytes);
printf("Number of processes: %u.\n", nprocs);
- close(fdf);
+ fflush(stdout);
reqs_per_proc = nreqs / nprocs;
nstart = 0;
gettimeofday(&tstart, NULL);
@@ -376,7 +377,6 @@ raidtest_test(int argc, char *argv[])
free(iorqs);
close(fdd);
exit(EXIT_SUCCESS);
- break;
case -1:
fprintf(stderr, "Cannot create process %u: %s\n",
(unsigned)i, strerror(errno));
OpenPOWER on IntegriCloud