static void on_exit_handler() { //some things if(LOGF_T != NULL) { log_destory(LOGF_T); LOGF_T = NULL; } }
static void on_master_exit_handler() { LOGF(ALERT, "master exited"); shm_free(_shm_serv_status); log_destory(ACCESS_LOG); }