9srv Manual Collection/plan9/env(3) | 9srv Manual Collection/plan9/env(3) |
---|
When a fork(2) system call creates a new process, both the parent and the child continue to see exactly the same files in the env device: changes made in either process can be noticed by the other. In contrast, an rfork system call with the RFENVG bit set (see fork(2)) causes a split: initially both process groups see the same environment files, but any changes made in one process group cannot be noticed by the other. An rfork with RFCENVG splits and then clears the environment.
The special global environment #ec contains kernel configuration variables, such as those set in plan9.ini(8). All processes see the same #ec; its contents are writable only by the host owner. [XXX actually everything is world writable; that's a mistake.]
9srv Manual Collection/plan9/env(3) | Rev: Sun Dec 02 23:42:21 GMT 2007 |