]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4251: incorrect instance name for memory segments in /dev/shm
authorJose Luis Godoy <joseluis.godoy@correo.aeat.es>
Sat, 25 Jul 2015 16:31:02 +0000 (09:31 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 25 Jul 2015 16:31:02 +0000 (09:31 -0700)
src/ipc/mem/Segment.cc

index 33a6ff9c9bd3831d9335ebb56cc5e8deb1c86f54..524cec12c282e43309056efa522b547e6f8982ba 100644 (file)
@@ -213,8 +213,11 @@ Ipc::Mem::Segment::GenerateName(const char *id)
         name.append(BasePath);
         if (name[name.size()-1] != '/')
             name.append('/');
-    } else
-        name.append("/squid-");
+    } else {
+        name.append('/');
+        name.append(service_name.c_str());
+        name.append('-');
+    }
 
     // append id, replacing slashes with dots
     for (const char *slash = strchr(id, '/'); slash; slash = strchr(id, '/')) {