]> granicus.if.org Git - apache/commitdiff
Add missing cleanup register
authorMladen Turk <mturk@apache.org>
Mon, 9 Feb 2009 06:49:46 +0000 (06:49 +0000)
committerMladen Turk <mturk@apache.org>
Mon, 9 Feb 2009 06:49:46 +0000 (06:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@742281 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_watchdog.c

index a95d2822599feca05911a0829e8d5ab694584b01..7711f3811ee599d822b89024c990d69e6166013c 100644 (file)
@@ -244,6 +244,7 @@ static apr_status_t wd_startup(ap_watchdog_t *w, apr_pool_t *p)
      * cleanup was being invoked before the thread completely spawned.
      */
     apr_thread_mutex_lock(w->startup);
+    apr_pool_pre_cleanup_register(p, w, wd_worker_cleanup);
 
     /* Start the newly created watchdog */
     rc = apr_thread_create(&w->thread, NULL, wd_worker, w, p);