summaryrefslogtreecommitdiff
path: root/sh.c
diff options
context:
space:
mode:
authorrtm <rtm>2006-08-12 11:38:57 +0000
committerrtm <rtm>2006-08-12 11:38:57 +0000
commit4357207237e074b5a42ee9739eadd040fd1cf296 (patch)
tree1fe657b94bdfb412c02c6c4cec089f329d69df96 /sh.c
parent1f544842ceb5af73b1f2b13222d72dd4ad7cd08a (diff)
downloadxv6-labs-4357207237e074b5a42ee9739eadd040fd1cf296.tar.gz
xv6-labs-4357207237e074b5a42ee9739eadd040fd1cf296.tar.bz2
xv6-labs-4357207237e074b5a42ee9739eadd040fd1cf296.zip
fix getblk to actually lock the block
no more cons_put system calls usertests tests two processes writing files
Diffstat (limited to 'sh.c')
-rw-r--r--sh.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sh.c b/sh.c
index e9ed2d9..9d4a308 100644
--- a/sh.c
+++ b/sh.c
@@ -12,7 +12,7 @@ main(void)
int pid;
while(1){
- write(1, "$ ", 2);
+ puts("$ ");
gets(buf, sizeof(buf));
if(buf[0] == '\0')
continue;
@@ -21,8 +21,7 @@ main(void)
args[0] = buf;
args[1] = 0;
exec(buf, args);
- write(1, buf, strlen(buf));
- write(1, ": not found\n", 12);
+ printf(1, "%s: not found\n", buf);
exit();
}
if(pid > 0)