mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Cleanup: manually port the polishing parts from Alik's changeset for
BUG#22306: STOP INSTANCE can not be applied for instances in Crashed, Failed and Abandoned
This commit is contained in:
@ -21,22 +21,22 @@ void IMService::Stop()
|
||||
{
|
||||
ReportStatus(SERVICE_STOP_PENDING);
|
||||
|
||||
// stop the IM work
|
||||
/* stop the IM work */
|
||||
raise(SIGTERM);
|
||||
}
|
||||
|
||||
void IMService::Run(DWORD argc, LPTSTR *argv)
|
||||
{
|
||||
// report to the SCM that we're about to start
|
||||
/* report to the SCM that we're about to start */
|
||||
ReportStatus((DWORD)SERVICE_START_PENDING);
|
||||
|
||||
Options::load(argc, argv);
|
||||
|
||||
// init goes here
|
||||
/* init goes here */
|
||||
ReportStatus((DWORD)SERVICE_RUNNING);
|
||||
|
||||
// wait for main loop to terminate
|
||||
manager();
|
||||
/* wait for main loop to terminate */
|
||||
(void) Manager::main();
|
||||
Options::cleanup();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user