From 7894fcd21732dd2ddfbb9beca52d037a62ed11f4 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Thu, 25 Aug 2016 09:13:00 -0400 Subject: =?UTF-8?q?Remove=20trailing=20white=20space=20with:=20=20for=20f?= =?UTF-8?q?=20in=20*.{h,c};=20do=20sed=20-i=20.sed=20's/[[:blank:]]*$//'?= =?UTF-8?q?=20$f;=20done=20(Thanks=20to=20Nicol=C3=A1s=20Wolovick)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- forktest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'forktest.c') 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"); } -- cgit v1.2.3