# HG changeset patch # User jbe # Date 1503337947 -7200 # Node ID ec1cca939315d437f640942a1cf30f79c675bcc6 # Parent 55a43a67e9ada3d61fd657476c8a85e3e790aa60 Improved documentation of WebMCP's initialization procedure diff -r 55a43a67e9ad -r ec1cca939315 doc/autodoc-header.htmlpart --- a/doc/autodoc-header.htmlpart Mon Aug 21 15:01:21 2017 +0200 +++ b/doc/autodoc-header.htmlpart Mon Aug 21 19:52:27 2017 +0200 @@ -131,43 +131,48 @@

  1. - Loading all WebMCP libraries except the "multirand" library (multirand opens /dev/urandom and thus must not be loaded prior to forking) + Initialization code of mcp.lua in the bin/ directory of the framework, including: +
  2. - Executing the selected configuration file: config/configuration_name.lua + Executing the selected configuration file: config/configuration_name.lua;
  3. - Executing all pre-fork initializers (both those in the app/_prefork/ and those in the app/application_name/_prefork/ directory) until call of execute.inner() within each initializer + Executing all pre-fork initializers (both those in the app/_prefork/ and those in the app/application_name/_prefork/ directory) until call of execute.inner() within each initializer;
  4. - The Moonbridge Network Server forks the process (i.e. cloning the whole Lua machine)
    + The Moonbridge Network Server forks the process (i.e. cloning the whole Lua machine);
    Note: no file handles or network connections must be opened prior to this point!
  5. - Loading WebMCP's "multirand" library + Loading WebMCP's "multirand" library;
  6. - Executing all post-fork initializers (both those in the app/_postfork/ and those in the app/application_name/_postfork/ directory) until call of execute.inner() within each initializer + Executing all post-fork initializers (both those in the app/_postfork/ and those in the app/application_name/_postfork/ directory) until call of execute.inner() within each initializer;
  7. For each request:
  8. - Resuming execution of all post-fork initializers in reverse order from that position where execute.inner() had been called + Resuming execution of all post-fork initializers in reverse order from that position where execute.inner() had been called;
  9. - Resuming execution of all pre-fork initializers in reverse order from that position where execute.inner() had been called + Resuming execution of all pre-fork initializers in reverse order from that position where execute.inner() had been called.