sys_proc_create() can dup FGRPs (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 1 Jul 2014 22:55:40 +0000 (15:55 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 1 Jul 2014 22:55:40 +0000 (15:55 -0700)
commitd0deb7f406ba80d33d5445b8a413b6d15ce82dc4
tree5c1827afe310df07eb5ed0602ac92feef832ab59
parent135eab4720bf5c19fe9310d93c60f5033f061cb8
sys_proc_create() can dup FGRPs (XCC)

9ns FGRPs were always being duped for all processes (fork and create), but VFS
ones were only duped for forks.  Now both 9ns and VFS behave the same way, and
you can pass a flag to have your entire FGRP, minus the CLOEXECs, duped from a
parent to a child on creation.  This happens implicitly in a fork().

Eventually, we'll have another dup call, say dup11345385(), that will allow a
parent to "dup2" specific FDs to its child.

Reinstall your kernel headers, or just:

$ cp kern/include/ros/procinfo.h \
  XCC_ROOT/install-x86_64-ros-gcc/x86_64-ros/sys-include/ros/procinfo.h
kern/include/ns.h
kern/include/process.h
kern/include/ros/procinfo.h
kern/src/ns/sysfile.c
kern/src/process.c
kern/src/syscall.c
tests/old/spawn.c
user/parlib/include/parlib.h
user/parlib/syscall.c