RE: [users@httpd] Problem accessing STATIC variables on Apache 1.3.33

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

 



Title: RE: [users@httpd] Problem accessing STATIC variables on Apache 1.3.33

Hi,


>  Is there any way how i can manage static variables for HP....????

>> Use shared memory.  For example, the APR library has
>>  http://apr.apache.org/docs/apr/group__apr__shm.html

Is there any routine in Apache 1.3X which supports similar functionality??

thanks and regrds
shiva


-----Original Message-----
From: Joshua Slive [mailto:jslive@xxxxxxxxx]
Sent: Fri 3/4/2005 11:24 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] Problem accessing STATIC variables on Apache 1.3.33

On Fri, 4 Mar 2005 11:57:37 +0530, siba.dora@xxxxxxxxx
<siba.dora@xxxxxxxxx> wrote:
>  I had earlier configured Apache on Windows. I had a small Plug-in running
> on the windows system which used to authenticate requests...
>  In the windows version i had some static variables which were used based on
> the values.

>  e.g. static int nVal = 0;


>  function abc()
>  {
>        nval = 1;
>  }

>  Once the value was changed to 1, it was reflected across the whole of my
> module irrespective of the request.

>  But currently i am facing problems when i ported the same code to HPUX 11i.
>  In HP although the code is the same, it always displays the initial value
> in case the request from Apache is a new one. (i.e. value for nVal is 1).

>  Is this because Apache on UNIX based machines is a Process based model
> while on Windows its a thread based one....???

Yes.


>  Is there any way how i can manage static variables for HP....????

Use shared memory.  For example, the APR library has
http://apr.apache.org/docs/apr/group__apr__shm.html

Joshua.

---------------------------------------------------------------------
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




Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@xxxxxxxxx immediately
and destroy all copies of this message and any attachments.

[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