diff options
author | Frans Kaashoek <[email protected]> | 2019-09-10 12:30:10 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2019-09-10 12:30:10 -0400 |
commit | 7e6c37e67e6da62e02089fc3292569103b7e94b3 (patch) | |
tree | 8b3f2e762f1f0a32a4641d240d30b155af6ab34a /user/kill.c | |
parent | 035cca95fe87c67ee1e33b9edfb2d87e24476fa8 (diff) | |
download | xv6-labs-7e6c37e67e6da62e02089fc3292569103b7e94b3.tar.gz xv6-labs-7e6c37e67e6da62e02089fc3292569103b7e94b3.tar.bz2 xv6-labs-7e6c37e67e6da62e02089fc3292569103b7e94b3.zip |
Support exit status for exit/wait
One test case for returning a exit status
Passes usertests, but haven't used it to simplify tests
Diffstat (limited to 'user/kill.c')
-rw-r--r-- | user/kill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/user/kill.c b/user/kill.c index 3e29cd0..f20c89f 100644 --- a/user/kill.c +++ b/user/kill.c @@ -9,9 +9,9 @@ main(int argc, char **argv) if(argc < 2){ fprintf(2, "usage: kill pid...\n"); - exit(); + exit(-1); } for(i=1; i<argc; i++) kill(atoi(argv[i])); - exit(); + exit(0); } |