git://git.iain.cx/iain
/
nssm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ignore INTERROGATE control.
[nssm.git]
/
service.cpp
diff --git
a/service.cpp
b/service.cpp
index
81e46ef
..
d4d023b
100644
(file)
--- a/
service.cpp
+++ b/
service.cpp
@@
-319,6
+319,10
@@
void log_service_control(char *service_name, unsigned long control, bool handled
/* Service control handler */
\r
unsigned long WINAPI service_control_handler(unsigned long control, unsigned long event, void *data, void *context) {
\r
switch (control) {
\r
/* Service control handler */
\r
unsigned long WINAPI service_control_handler(unsigned long control, unsigned long event, void *data, void *context) {
\r
switch (control) {
\r
+ case SERVICE_CONTROL_INTERROGATE:
\r
+ /* We always keep the service status up-to-date so this is a no-op. */
\r
+ return NO_ERROR;
\r
+
\r
case SERVICE_CONTROL_SHUTDOWN:
\r
case SERVICE_CONTROL_STOP:
\r
log_service_control(service_name, control, true);
\r
case SERVICE_CONTROL_SHUTDOWN:
\r
case SERVICE_CONTROL_STOP:
\r
log_service_control(service_name, control, true);
\r