1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-24 14:48:09 +03:00

fixed the service bits of the IM

This commit is contained in:
reggie@ubuntu.(none)
2005-09-13 14:53:19 -05:00
parent 6985adffc1
commit 31be8fb694
10 changed files with 58 additions and 31 deletions

View File

@@ -8,7 +8,8 @@ WindowsService::WindowsService(void) :
statusCheckpoint(0),
serviceName(NULL),
inited(false),
dwAcceptedControls(SERVICE_ACCEPT_STOP)
dwAcceptedControls(SERVICE_ACCEPT_STOP),
debugging(false)
{
gService= this;
status.dwServiceType= SERVICE_WIN32_OWN_PROCESS;
@@ -148,7 +149,7 @@ void WindowsService::RegisterAndRun(DWORD argc, LPTSTR *argv)
{
statusHandle= ::RegisterServiceCtrlHandler(serviceName, ControlHandler);
if (statusHandle && ReportStatus(SERVICE_START_PENDING))
Run();
Run(argc, argv);
ReportStatus(SERVICE_STOPPED);
}