diff options
author | Austin Clements <[email protected]> | 2010-09-01 00:41:25 -0400 |
---|---|---|
committer | Austin Clements <[email protected]> | 2010-09-01 00:41:25 -0400 |
commit | b0751a3e9bfce88cb07c1a540ceabf21f2d53b31 (patch) | |
tree | 061a378a3666ceef074118eab6b0ca02845b717a /stressfs.c | |
parent | 5efca9054f1911e206831e16c2ca5ac8c8fc7c12 (diff) | |
download | xv6-labs-b0751a3e9bfce88cb07c1a540ceabf21f2d53b31.tar.gz xv6-labs-b0751a3e9bfce88cb07c1a540ceabf21f2d53b31.tar.bz2 xv6-labs-b0751a3e9bfce88cb07c1a540ceabf21f2d53b31.zip |
Space police
Diffstat (limited to 'stressfs.c')
-rw-r--r-- | stressfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -17,8 +17,8 @@ main(int argc, char *argv[]) int i; printf(1, "stressfs starting\n"); - for (i = 0; i < 4; i++) { - if (fork() > 0) { + for(i = 0; i < 4; i++){ + if(fork() > 0){ break; } } @@ -28,7 +28,7 @@ main(int argc, char *argv[]) char path[] = "stressfs0"; path[8] += i; int fd = open(path, O_CREATE | O_RDWR); - for (i = 0; i < 100; i++) + for(i = 0; i < 100; i++) printf(fd, "%d\n", i); close(fd); |