/** * Cleanup function to log nginx process exit and destroy ironbee engine * * @param[in] cycle nginx cycle rec */ static void ironbee_exit(ngx_cycle_t *cycle) { ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, "ironbee_exit %d", getpid()); /* FIXME: this fails under gdb */ ngxib_log(cycle->log); ib_engine_destroy(ironbee); ngxib_log(NULL); }
/** * @internal * * Cleanup. */ static apr_status_t ironbee_module_cleanup(void *data) { ib_engine_destroy(ironbee); return APR_SUCCESS; }
void Engine::destroy() { ib_engine_destroy(ib()); }
static void ibexit(void) { TSTextLogObjectDestroy(ironbee_log); ib_engine_destroy(ironbee); }