Fixed file insertion of stdin/stdout/stderr
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 24 Aug 2010 22:06:28 +0000 (15:06 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:53 +0000 (17:35 -0700)
commit7486d4b06d0e0178686f7c9aa6e81306be5594ac
treebc0a7960931fe2935f595bf64136a33c9be5140f
parentd1e348f863903d6a506209ae566871c82aaf9eed
Fixed file insertion of stdin/stdout/stderr

Fork clones, so we don't want to bother inserting for those.  If we did,
we could run into issues with programs that dup then close the original
FDs.  This fix handles that and is reasonable enough.
kern/src/process.c
kern/src/syscall.c
kern/src/vfs.c