projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleaned up comments for reboot code and adopted GNU coding standards
[pintos-anon]
/
src
/
tests
/
userprog
/
multi-child-fd.c
diff --git
a/src/tests/userprog/multi-child-fd.c
b/src/tests/userprog/multi-child-fd.c
index 019708ec989fe55295b9f6a397bd59fa84f19c82..48de4b4afae62427a63e3d56d08ac02f9718693b 100644
(file)
--- a/
src/tests/userprog/multi-child-fd.c
+++ b/
src/tests/userprog/multi-child-fd.c
@@
-1,3
+1,8
@@
+/* Opens a file and then runs a subprocess that tries to close
+ the file. (Pintos does not have inheritance of file handles,
+ so this must fail.) The parent process then attempts to use
+ the file handle, which must succeed. */
+
#include <stdio.h>
#include <syscall.h>
#include "tests/userprog/sample.inc"
#include <stdio.h>
#include <syscall.h>
#include "tests/userprog/sample.inc"