diff options
Diffstat (limited to 'forktest.c')
-rw-r--r-- | forktest.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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"); } |