wangzhengquan
2020-10-13 2a4e4619f34a742e36693e589e0431347a72979b
src/queue/mm.c
@@ -402,13 +402,13 @@
  
  if(shmctl(shmid, IPC_STAT, &shmid_ds) == 0) {
    //LoggerFactory::getLogger().debug("shm_nattch=%d\n", shmid_ds.shm_nattch);
    //LoggerFactory::getLogger()->debug("shm_nattch=%d\n", shmid_ds.shm_nattch);
    if(shmid_ds.shm_nattch == 0) {
      //remove shared memery
       if (shmctl(shmid, IPC_RMID, 0) == -1)
        err_exit(errno, "mm_destroy shmctl IPC_RMID");
       else 
         LoggerFactory::getLogger().debug("shared memory destroy\n");
         LoggerFactory::getLogger()->debug("shared memory destroy\n");
       SemUtil::inc(mutex);
       SemUtil::remove(mutex);