From: Joe Orton Date: Wed, 22 Sep 2004 13:35:31 +0000 (+0000) Subject: * server/scoreboard.c (create_namebased_scoreboard): Use X-Git-Tag: 2.1.1~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba6d980639c11e9cd306dab02d0c3e2d1e648570;p=thirdparty%2Fapache%2Fhttpd.git * server/scoreboard.c (create_namebased_scoreboard): Use 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 --- diff --git a/server/scoreboard.c b/server/scoreboard.c index ef545e0ac88..465cb3d886d 100644 --- a/server/scoreboard.c +++ b/server/scoreboard.c @@ -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) {