Problem: apache plugin initialises statics twice
am 07.01.2008 14:02:37 von tropostroposI work on a large Apache plugin for an Internet Bank. Logging shows
that many or all static objects in the plugin are being initialised
twice at startup time.
The platform is C++, AIX Unix, using the vaccp compiler. The plugin is
built as a shared object (.so) file.
My first thought was that Apache's parent process loads the shared
object and initialises it, and then it forks to a child process which
does the same. But the logging gives the same PID for both
initialisations of each of the static objects. It appears to occur in
the child process.
Running the same classes in a test harness (not a plugin) shows normal
behaviour. The problem appears to be related to the Apache
environment.
Can anyone explain this?
tropos
------------------------------------------------
Reply to this newsgroup, please.