diff options
author | Robert Morris <[email protected]> | 2019-09-11 10:04:40 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2019-09-11 10:04:40 -0400 |
commit | 35010f0d0fae49e91b92585f3e97e56da4ac0082 (patch) | |
tree | 12062e40dff173df6c5a4b801e3f5a5ecdd31547 /user/forktest.c | |
parent | 7e6c37e67e6da62e02089fc3292569103b7e94b3 (diff) | |
download | xv6-labs-35010f0d0fae49e91b92585f3e97e56da4ac0082.tar.gz xv6-labs-35010f0d0fae49e91b92585f3e97e56da4ac0082.tar.bz2 xv6-labs-35010f0d0fae49e91b92585f3e97e56da4ac0082.zip |
error exit status is 1
Diffstat (limited to 'user/forktest.c')
-rw-r--r-- | user/forktest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/user/forktest.c b/user/forktest.c index 26b33dc..384e75f 100644 --- a/user/forktest.c +++ b/user/forktest.c @@ -30,19 +30,19 @@ forktest(void) if(n == N){ print("fork claimed to work N times!\n"); - exit(-1); + exit(1); } for(; n > 0; n--){ if(wait(0) < 0){ print("wait stopped early\n"); - exit(-1); + exit(1); } } if(wait(0) != -1){ print("wait got too many\n"); - exit(-1); + exit(1); } print("fork test OK\n"); |