httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r426781 - in /httpd/httpd/branches/httpd-proxy-scoreboard: modules/mem/sharedmem_util.c support/proxymonitor.c
Date Sat, 29 Jul 2006 11:43:26 GMT
Author: jfclere
Date: Sat Jul 29 04:43:25 2006
New Revision: 426781

URL: http://svn.apache.org/viewvc?rev=426781&view=rev
Log:
Create the directory for the path to the shared memory.

Modified:
    httpd/httpd/branches/httpd-proxy-scoreboard/modules/mem/sharedmem_util.c
    httpd/httpd/branches/httpd-proxy-scoreboard/support/proxymonitor.c

Modified: httpd/httpd/branches/httpd-proxy-scoreboard/modules/mem/sharedmem_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/httpd-proxy-scoreboard/modules/mem/sharedmem_util.c?rev=426781&r1=426780&r2=426781&view=diff
==============================================================================
--- httpd/httpd/branches/httpd-proxy-scoreboard/modules/mem/sharedmem_util.c (original)
+++ httpd/httpd/branches/httpd-proxy-scoreboard/modules/mem/sharedmem_util.c Sat Jul 29 04:43:25
2006
@@ -88,9 +88,18 @@
     ap_slotmem_t *res;
     ap_slotmem_t *next = globallistmem;
     char *fname;
+    char *dir, *sep;
+    char *dname;
     apr_status_t rv;
 
     fname = ap_server_root_relative(pool, name);
+    dir = apr_pstrdup(pool, name);
+    sep = strrchr(dir, '/');
+    if (sep != NULL) {
+        *sep++ = '\0'; 
+        dname = ap_server_root_relative(pool, dir);
+        apr_dir_make(dname, APR_UREAD|APR_UWRITE|APR_UEXECUTE, pool);
+    }
 
     /* first try to attach to existing slotmem */
     if (next) {

Modified: httpd/httpd/branches/httpd-proxy-scoreboard/support/proxymonitor.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/httpd-proxy-scoreboard/support/proxymonitor.c?rev=426781&r1=426780&r2=426781&view=diff
==============================================================================
--- httpd/httpd/branches/httpd-proxy-scoreboard/support/proxymonitor.c (original)
+++ httpd/httpd/branches/httpd-proxy-scoreboard/support/proxymonitor.c Sat Jul 29 04:43:25
2006
@@ -101,6 +101,10 @@
     }
     return fname;
 }
+char * ap_strrchr(char *s, int c)
+{
+        return strrchr(s,c);
+}
 
 /*
  * called on SIGINT or SIGTERM



Mime
View raw message