static int mod_init( void ) { LM_INFO("exec - initializing\n"); if (time_to_kill) initialize_kill(); if (async) { /* init exeternal structure if async enabled */ exec_async_list = shm_malloc(sizeof(exec_list_t)); if (!exec_async_list) { LM_ERR("no more shm memory\n"); return -1; } memset(exec_async_list, 0, sizeof(exec_list_t)); exec_async_list->lock = lock_alloc(); if (!exec_async_list->lock) { LM_ERR("cannot alloc asyncronous lock \n"); return -1; } if (!lock_init(exec_async_list->lock)) { LM_ERR("failed to init lock\n"); return -1; } } else { #ifdef STATIC_EXEC exec_exports.procs = 0; #else exports.procs = 0; #endif } return 0; }
static int mod_init( void ) { LM_INFO("exec - initializing\n"); if (time_to_kill) initialize_kill(); return 0; }
static int mod_init( void ) { fprintf( stderr, "exec - initializing\n"); if (time_to_kill) initialize_kill(); return 0; }
static int mod_init( void ) { if (time_to_kill) initialize_kill(); return 0; }