1
0
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:
kostja@bodhi.local
2006-11-16 23:36:20 +03:00
parent e8d51e62bb
commit 2f69dfb28f
21 changed files with 205 additions and 226 deletions

View File

@ -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();
}