Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d57c7dcf
Commit
d57c7dcf
authored
Nov 27, 2008
by
Tatiana A. Nurnberg
Browse files
Options
Browse Files
Download
Plain Diff
auto-merge
parents
ae0c6a94
c3f07acf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
5 deletions
+24
-5
sql/mysqld.cc
sql/mysqld.cc
+3
-0
sql/nt_servc.cc
sql/nt_servc.cc
+8
-4
sql/nt_servc.h
sql/nt_servc.h
+13
-1
No files found.
sql/mysqld.cc
View file @
d57c7dcf
...
@@ -3840,6 +3840,9 @@ we force server id to 2, but this MySQL server will not act as a slave.");
...
@@ -3840,6 +3840,9 @@ we force server id to 2, but this MySQL server will not act as a slave.");
:
mysqld_unix_port
),
:
mysqld_unix_port
),
mysqld_port
,
mysqld_port
,
MYSQL_COMPILATION_COMMENT
);
MYSQL_COMPILATION_COMMENT
);
#if defined(_WIN32) && !defined(EMBEDDED_LIBRARY)
Service
.
SetRunning
();
#endif
#if defined(__NT__) || defined(HAVE_SMEM)
#if defined(__NT__) || defined(HAVE_SMEM)
handle_connections_methods
();
handle_connections_methods
();
...
...
sql/nt_servc.cc
View file @
d57c7dcf
...
@@ -245,10 +245,6 @@ void NTService::ServiceMain(DWORD argc, LPTSTR *argv)
...
@@ -245,10 +245,6 @@ void NTService::ServiceMain(DWORD argc, LPTSTR *argv)
if
(
!
pService
->
StartService
())
if
(
!
pService
->
StartService
())
goto
error
;
goto
error
;
// Check that the service is now running.
if
(
!
pService
->
SetStatus
(
SERVICE_RUNNING
,
NO_ERROR
,
0
,
0
,
0
))
goto
error
;
// wait for exit event
// wait for exit event
WaitForSingleObject
(
pService
->
hExitEvent
,
INFINITE
);
WaitForSingleObject
(
pService
->
hExitEvent
,
INFINITE
);
...
@@ -264,6 +260,14 @@ void NTService::ServiceMain(DWORD argc, LPTSTR *argv)
...
@@ -264,6 +260,14 @@ void NTService::ServiceMain(DWORD argc, LPTSTR *argv)
return
;
return
;
}
}
void
NTService
::
SetRunning
()
{
if
(
pService
)
pService
->
SetStatus
(
SERVICE_RUNNING
,
NO_ERROR
,
0
,
0
,
0
);
}
/* ------------------------------------------------------------------------
/* ------------------------------------------------------------------------
StartService() - starts the appliaction thread
StartService() - starts the appliaction thread
-------------------------------------------------------------------------- */
-------------------------------------------------------------------------- */
...
...
sql/nt_servc.h
View file @
d57c7dcf
...
@@ -56,7 +56,19 @@ class NTService
...
@@ -56,7 +56,19 @@ class NTService
BOOL
IsService
(
LPCSTR
ServiceName
);
BOOL
IsService
(
LPCSTR
ServiceName
);
BOOL
got_service_option
(
char
**
argv
,
char
*
service_option
);
BOOL
got_service_option
(
char
**
argv
,
char
*
service_option
);
BOOL
is_super_user
();
BOOL
is_super_user
();
void
Stop
(
void
);
//to be called from app. to stop service
/*
SetRunning() is to be called by the application
when initialization completes and it can accept
stop request
*/
void
SetRunning
(
void
);
/*
Stop() is to be called by the application to stop
the service
*/
void
Stop
(
void
);
protected:
protected:
LPSTR
ServiceName
;
LPSTR
ServiceName
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment