From 7e6c37e67e6da62e02089fc3292569103b7e94b3 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Tue, 10 Sep 2019 12:30:10 -0400 Subject: Support exit status for exit/wait One test case for returning a exit status Passes usertests, but haven't used it to simplify tests --- user/kill.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user/kill.c') 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