summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Ueyama <[email protected]>2020-03-11 16:05:43 +0900
committerRui Ueyama <[email protected]>2020-03-11 16:06:55 +0900
commit4cf0b0973eb0874737260d0bc5643c891b454832 (patch)
tree2d1823ff4662e21b653e540c64466b47ebab082f
parent9ead904afef8d060c2cc5cee6bd8e8d223de8c40 (diff)
downloadxv6-labs-4cf0b0973eb0874737260d0bc5643c891b454832.tar.gz
xv6-labs-4cf0b0973eb0874737260d0bc5643c891b454832.tar.bz2
xv6-labs-4cf0b0973eb0874737260d0bc5643c891b454832.zip
cat should exit normally if reading from stdin
-rw-r--r--user/cat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/user/cat.c b/user/cat.c
index 36939d8..2435b9e 100644
--- a/user/cat.c
+++ b/user/cat.c
@@ -28,7 +28,7 @@ main(int argc, char *argv[])
if(argc <= 1){
cat(0);
- exit(1);
+ exit(0);
}
for(i = 1; i < argc; i++){