Hi, I'm working with a custom apache module that needs to cleanup on child exit. Under a steady load (with about 25-30 httpd worker processes), the handler registered for apr_pool_cleanup_register does not get invoked after some time. Initially, the exit function registered is called for when every child exits. After a certain point, the module in each worker thread processes a few requests and then quits in the middle of processing, apparently normally, as no messages are logged in the error_log. From this point on, every child process exits after processing varying number of requests, without calling the registered exit function. In the absence of apr_pool_cleanup_register operation, the module works as expected for extended period of time. Has anyone encountered any problems with using apr_pool_cleanup_register to register handler for per child exit? Are there any other options for doing cleanup operations when a child process exits?
Thanks