Esempio n. 1
0
/**
 * 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);
}
Esempio n. 2
0
/**
 * @internal
 *
 * Cleanup.
 */
static apr_status_t ironbee_module_cleanup(void *data)
{
    ib_engine_destroy(ironbee);

    return APR_SUCCESS;
}
Esempio n. 3
0
void Engine::destroy()
{
    ib_engine_destroy(ib());
}
Esempio n. 4
0
static void ibexit(void)
{
  TSTextLogObjectDestroy(ironbee_log);
  ib_engine_destroy(ironbee);
}