Re: [users@httpd] Global Variables in Apache2 module with MPM support.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
apache-modules@xxxxxxxxxxxx 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: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux