| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html> |
| <head> |
| <title>Child Init</title> |
| <link rel="stylesheet" href="style.css"> |
| </head> |
| |
| <body> |
| <? prevnext "<h1>Child Init</h1>" ?> |
| |
| <p> 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. |
| </p> |
| |
| <p>In Rivet, we:</p> |
| <ul> |
| <li>Initialize Tcl. |
| <ul> |
| <li>Create global Tcl interpreter.</li> |
| <li>Set up environment.</li> |
| <li>Create channels (more about this later).</li> |
| <li>Create Rivet-specific commands.</li> |
| <li>Run Tcl scripts specific to ChildInit stage.</li> |
| </ul> |
| </li> |
| </li> |
| <li>Create Tcl interpreters for each Virtual Host (10.0.0.1 -> |
| foo.com, bar.com, baz.com)</li> |
| </ul> |
| |
| |
| <?footer?> |
| </body> |
| </html> |