- fflush() standard output before fork()ing.
- Remove redundant 'break'.
This commit is contained in:
parent
e19f32a461
commit
c14401c00f
@ -358,12 +358,13 @@ raidtest_test(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
close(fdf);
|
||||||
printf("Read %ju requests from %s.\n", nreqs, file);
|
printf("Read %ju requests from %s.\n", nreqs, file);
|
||||||
printf("Number of READ requests: %ju.\n", nrreqs);
|
printf("Number of READ requests: %ju.\n", nrreqs);
|
||||||
printf("Number of WRITE requests: %ju.\n", nwreqs);
|
printf("Number of WRITE requests: %ju.\n", nwreqs);
|
||||||
printf("Number of bytes to transmit: %ju.\n", nbytes);
|
printf("Number of bytes to transmit: %ju.\n", nbytes);
|
||||||
printf("Number of processes: %u.\n", nprocs);
|
printf("Number of processes: %u.\n", nprocs);
|
||||||
close(fdf);
|
fflush(stdout);
|
||||||
reqs_per_proc = nreqs / nprocs;
|
reqs_per_proc = nreqs / nprocs;
|
||||||
nstart = 0;
|
nstart = 0;
|
||||||
gettimeofday(&tstart, NULL);
|
gettimeofday(&tstart, NULL);
|
||||||
@ -376,7 +377,6 @@ raidtest_test(int argc, char *argv[])
|
|||||||
free(iorqs);
|
free(iorqs);
|
||||||
close(fdd);
|
close(fdd);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
break;
|
|
||||||
case -1:
|
case -1:
|
||||||
fprintf(stderr, "Cannot create process %u: %s\n",
|
fprintf(stderr, "Cannot create process %u: %s\n",
|
||||||
(unsigned)i, strerror(errno));
|
(unsigned)i, strerror(errno));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user