Skip to content

Commit

Permalink
tiny changes in documentation about extension callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
EmielBruijntjes committed May 6, 2014
1 parent 9497b86 commit 9502a73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions documentation/extension-callbacks.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,16 @@ <h2 id="apache-prefork-module">Forked engines (like Apache)</h2>
while the shutdown function is called by <i>every</i> child process
that gracefully exits. The onShutdown is thus not only called when the
Apache process is stopped, but also when one of the worker processes
exits because it no longer is necessary, or because it is replaced by
exits because it no longer is needed, or because it is replaced by
a fresh and new worker.
</p>
<p>
The get_module() function - as you've seen countles times before - is
called when your extension is initially loaded. But not only then. When
apache is reloaded (for example by giving the command line instruction
"apachectl reload"), your get_module() gets called for a second time,
and the callback that you registered with Extension::onStartup() too.
and the callback that you registered with Extension::onStartup() is
called again too.
This is normally not a problem, because the static extension object is
in a locked state after the first get_module() call, and the functions
and classes that you try to add to the extension object in the second
Expand Down

0 comments on commit 9502a73

Please sign in to comment.