prevnext "Child Init
" ?>
This code is called for every child process forked off from the
parent. This is a good place to do things that are
process-specific.
In Rivet, we:
- Initialize Tcl.
- Create global Tcl interpreter.
- Set up environment.
- Create channels (more about this later).
- Create Rivet-specific commands.
- Run Tcl scripts specific to ChildInit stage.
- Create Tcl interpreters for each Virtual Host (10.0.0.1 ->
foo.com, bar.com, baz.com)