Skip to content

Commit

Permalink
modules/cdp: removed references to old shm management
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Sep 14, 2015
1 parent 171553e commit 4c2c7d2
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions modules/cdp/globals.c
Expand Up @@ -45,6 +45,7 @@

#include "globals.h"
#include "utils.h"
#include "../../mem/shm_mem.h"

//str aaa_fqdn={"unset_fqdn",10};
//str aaa_realm={"unset_realm",11};
Expand Down Expand Up @@ -83,31 +84,6 @@
/** call it before exiting; if show_status==1, mem status is displayed */
void destroy_memory(int show_status)
{
/*clean-up*/
if (mem_lock)
shm_unlock(); /* hack: force-unlock the shared memory lock in case
some process crashed and let it locked; this will
allow an almost gracious shutdown */
#ifdef SHM_MEM
if (show_status){
LM_DBG( "Memory status (shm):\n");
//shm_status();
#ifndef SER_MOD_INTERFACE
shm_sums();
#endif
}
/* zero all shmem alloc vars that we still use */
shm_mem_destroy();
#endif
#ifdef PKG_MALLOC
if (show_status){
LM_DBG( "Memory status (pkg):\n");
//pkg_status();
#ifndef SER_MOD_INTERFACE
pkg_sums();
#endif
}
#endif
}


0 comments on commit 4c2c7d2

Please sign in to comment.