MXS-2547: Do shutdown on main worker
By stopping the REST API before the workers and moving the shutdown to the same worker that handles REST API requests, we prevent the hang on shutdown. This also makes the signal handler signal-safe.
This commit is contained in:
@ -410,6 +410,7 @@ bool mxs_admin_init()
|
||||
void mxs_admin_shutdown()
|
||||
{
|
||||
MHD_stop_daemon(http_daemon);
|
||||
MXS_NOTICE("Stopped MaxScale REST API");
|
||||
}
|
||||
|
||||
bool mxs_admin_https_enabled()
|
||||
|
Reference in New Issue
Block a user