projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move problem 1-2 (join) into project 2 as the "wait" system call.
[pintos-anon]
/
src
/
tests
/
userprog
/
shell.c
diff --git
a/src/tests/userprog/shell.c
b/src/tests/userprog/shell.c
index 7b9570ac9d564df88b3aef8c71d14600b1a481e6..7cf5c607d7d431df8d6ad7cc517a27be910c3fcc 100644
(file)
--- a/
src/tests/userprog/shell.c
+++ b/
src/tests/userprog/shell.c
@@
-26,7
+26,7
@@
main (void)
{
pid_t pid = exec (command);
if (pid != PID_ERROR)
-
join
(pid);
+
wait
(pid);
else
printf ("exec failed\n");
}