control_shutdown
Name
control_shutdown
Synopsis
#include "hooks/core/control_shutdown.h"
| void **control_shutdown** ( | closure); | |
void * <var class="pdparam">closure</var>;
| int **has_core_control_shutdown_hook** ( | ); | |
| void **register_core_control_shutdown_hook_first** ( | hook, | |
| | closure); | |
ec_hook_core_control_shutdown_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;
| void **register_core_control_shutdown_hook_last** ( | hook, | |
| | closure); | |
ec_hook_core_control_shutdown_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;
| void **call_core_control_shutdown_hook** ( | ); | |
Description
This hook is invoked when an instance shutdown occurs. This is typically in event that a shutdown command was issued over ec_console. However, this may also be called in the event of an unexpected crash.
See also control_shutdown_ex, which provides more information on why the instance is being shutdown.