SWU_MODULE_SHUTDOWN()

Shut down a module before the SWU process exits.

Synopsis:

#include <swud/swu_module.h>

swu_result_t SWU_MODULE_SHUTDOWN( void )

Description:

Shut down a module. The swud service calls this function on each loaded module, while the service is shutting down. Implementing this function is optional; you can skip its implementation for a module if nothing special needs to be done to shut it down. Any implementation of this function must be signal handler-safe because it's called from within a signal handler in swud. This means that all function calls made within this function must also be signal handler-safe.

Returns:

An swu_result_t constant indicating if the shutdown was successful or what error (if any) occurred.