X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=grading%2Fuserprog%2Fmulti-child-fd.c;h=7b1bc9a912fc9e5efa15ce318a49106ae7803ac1;hb=5780c9f434cca090f88463b7f0199d49b4ded288;hp=4a8c89fae509f67ab2b4693c6e9ffa951375299c;hpb=bd7bad8e3881965f74070ce7b685fedbdaf8fb1c;p=pintos-anon diff --git a/grading/userprog/multi-child-fd.c b/grading/userprog/multi-child-fd.c index 4a8c89f..7b1bc9a 100644 --- a/grading/userprog/multi-child-fd.c +++ b/grading/userprog/multi-child-fd.c @@ -20,11 +20,11 @@ main (void) 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) - printf ("(multi-child-fd) fail: read() returned %d instead of %d\n", + printf ("(multi-child-fd) fail: read() returned %d instead of %zu\n", byte_cnt, sizeof actual - 1); else if (strcmp (sample, actual)) printf ("(multi-child-fd) fail: expected text differs from actual:\n%s",