summaryrefslogtreecommitdiff
path: root/forktest.c
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2016-08-25 09:13:00 -0400
committerFrans Kaashoek <[email protected]>2016-08-25 09:13:00 -0400
commit7894fcd21732dd2ddfbb9beca52d037a62ed11f4 (patch)
treeeabcfc4f08613dcf7c35e58d9425f02c4c65224f /forktest.c
parent6de6a3c952dc8786619bd052e26e6bc1c97be2e6 (diff)
downloadxv6-labs-7894fcd21732dd2ddfbb9beca52d037a62ed11f4.tar.gz
xv6-labs-7894fcd21732dd2ddfbb9beca52d037a62ed11f4.tar.bz2
xv6-labs-7894fcd21732dd2ddfbb9beca52d037a62ed11f4.zip
Remove trailing white space with:
for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick)
Diffstat (limited to 'forktest.c')
-rw-r--r--forktest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/forktest.c b/forktest.c
index bb286e6..73f2fe8 100644
--- a/forktest.c
+++ b/forktest.c
@@ -27,24 +27,24 @@ forktest(void)
if(pid == 0)
exit();
}
-
+
if(n == N){
printf(1, "fork claimed to work N times!\n", N);
exit();
}
-
+
for(; n > 0; n--){
if(wait() < 0){
printf(1, "wait stopped early\n");
exit();
}
}
-
+
if(wait() != -1){
printf(1, "wait got too many\n");
exit();
}
-
+
printf(1, "fork test OK\n");
}