]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed cleanup of a shared memory segment in an unusual configuration.
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 28 Jan 2016 01:49:55 +0000 (18:49 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 28 Jan 2016 01:49:55 +0000 (18:49 -0700)
Squid was not removing squid-squid-page-pool.shm at exit when started
in non-daemon mode (-N). That segment is used in non-SMP mode if
memory_cache_shared is explicitly set to "on" (an unusual
configuration primarily useful for testing).

src/ipc/mem/Pages.cc

index 8704842a55b6c477b35abec81dcfae795579e287..0502129b2664bc1f99eaa3d4177000686d311c73 100644 (file)
@@ -131,9 +131,6 @@ SharedMemPagesRr::open()
 
 SharedMemPagesRr::~SharedMemPagesRr()
 {
-    if (!UsingSmp())
-        return;
-
     delete ThePagePool;
     ThePagePool = NULL;
     delete owner;