X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fuserprog%2Fchild-close.c;h=ac948c8efe6978e98960fceda85218b84a3c3415;hb=a03618133f7df0954802a470a4bee7674f7aed45;hp=83e3d06966cc8efabed1696a8ed5fc33f9511036;hpb=615bf3b3d2a8573ed6fb9ddc0055745e163ac999;p=pintos-anon diff --git a/src/tests/userprog/child-close.c b/src/tests/userprog/child-close.c index 83e3d06..ac948c8 100644 --- a/src/tests/userprog/child-close.c +++ b/src/tests/userprog/child-close.c @@ -1,3 +1,12 @@ +/* Child process run by multi-child-fd test. + + Attempts to close the file descriptor passed as the first + command-line argument. This is invalid, because file + descriptors are not inherited in Pintos. Two results are + allowed: either the system call should return without taking + any action, or the kernel should terminate the process with a + -1 exit code. */ + #include #include #include