]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* server/scoreboard.c (create_namebased_scoreboard): Use
authorJoe Orton <jorton@apache.org>
Wed, 22 Sep 2004 13:35:31 +0000 (13:35 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 22 Sep 2004 13:35:31 +0000 (13:35 +0000)
apr_shm_remove() rather than the unsufficient apr_file_remove().

PR: 27189

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105247 13f79535-47bb-0310-9956-ffa450edef68

server/scoreboard.c

index ef545e0ac8879be2e1840b1698594d7ee60d5040..465cb3d886d776bff322af08fe0984db33205bc4 100644 (file)
@@ -151,7 +151,7 @@ static apr_status_t create_namebased_scoreboard(apr_pool_t *pool,
 
     /* The shared memory file must not exist before we create the
      * segment. */
-    apr_file_remove(fname, pool); /* ignore errors */
+    apr_shm_remove(fname, pool); /* ignore errors */
 
     rv = apr_shm_create(&ap_scoreboard_shm, scoreboard_size, fname, pool);
     if (rv != APR_SUCCESS) {