[users@httpd] HELP .... apr_pool_t and apr_global_mutex _

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

 



Hi *,

I am using apr_* api's in my apache module and scenario is like as
follows:

1) In init_module, I am creating one apr_global_mutex_t
        and registering a cleanup function which destroys the mutex.

2) In init_child, I am re-opening the same mutex using
apr_global_mutex_child_init

3) During Graceful restart, there is a race condition between mutex
destruction and child-restart i.e. Mutex is destroyed first while old
httpd childrens are still running and throws an error "(22), Invalid
Argument". (This scenario is easy to replicate when http is pumped with
high number of http requests and simultaneously i do graceful restart)

4) I tried to comment out the code which destroys the mutex, but still i
am getting the same error. (I believe the pool which is associated with
the mutex is getting cleared...).

I already spent couple of days over this and couldn;t figure out any
workaround.


Kindly Suggest.

Thanks in advance.

Sudhanshu




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