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]
/
grading
/
userprog
/
multi-parent-fd.c
diff --git
a/grading/userprog/multi-parent-fd.c
b/grading/userprog/multi-parent-fd.c
index 4a8c89fae509f67ab2b4693c6e9ffa951375299c..56e10b13bd6c7bf941b1897fff915c968cbf29f2 100644
(file)
--- a/
grading/userprog/multi-parent-fd.c
+++ b/
grading/userprog/multi-parent-fd.c
@@
-20,7
+20,7
@@
main (void)
snprintf (child_cmd, sizeof child_cmd, "child-close %d", handle);
snprintf (child_cmd, sizeof child_cmd, "child-close %d", handle);
- printf ("(multi-child-fd)
join(exec()) = %d\n", join
(exec (child_cmd)));
+ printf ("(multi-child-fd)
wait(exec()) = %d\n", wait
(exec (child_cmd)));
byte_cnt = read (handle, actual, sizeof actual - 1);
if (byte_cnt != sizeof actual - 1)
byte_cnt = read (handle, actual, sizeof actual - 1);
if (byte_cnt != sizeof actual - 1)