summaryrefslogtreecommitdiff
path: root/user/echo.c
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2019-09-10 12:30:10 -0400
committerFrans Kaashoek <[email protected]>2019-09-10 12:30:10 -0400
commit7e6c37e67e6da62e02089fc3292569103b7e94b3 (patch)
tree8b3f2e762f1f0a32a4641d240d30b155af6ab34a /user/echo.c
parent035cca95fe87c67ee1e33b9edfb2d87e24476fa8 (diff)
downloadxv6-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/echo.c')
-rw-r--r--user/echo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/user/echo.c b/user/echo.c
index d0ac6ab..3f19cd7 100644
--- a/user/echo.c
+++ b/user/echo.c
@@ -15,5 +15,5 @@ main(int argc, char *argv[])
write(1, "\n", 1);
}
}
- exit();
+ exit(0);
}