Nikunj Virani wrote:

I am working apache 2.0 module development with MPM support. We have a *DSO module* which helps us to process request of particular extension. This module is supposed to count the number of requests that are successfully processed and number of requests that fail on Apache and some similar information. For this we are using a global structure which will have different data members to store counts of different type. Currently we are initializing this global structure variable at the startup of apache 2 parent process and all child process modifies and accesses its value. But somehow the parent process is not able to get the modified value of this global variable.

Of course not, that's normal paged memory.  Read up on fork(), you will
observe that each child process gets it's own *copy* (it may be shared
initially but tagged copy-on-write).

You need a shared memory segment, al la apr_shm_*(), but this isn't a
particularly great place to go into the mechanics of module authoring.
[EMAIL PROTECTED] is just such a list for discussing how-to
author a module.

Bill

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to