projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf2be57
)
Handle SERVICE_CONTROL_INTERROGATE requests. Thanks to Carsten Ralle for noticing...
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 17 Aug 2007 22:09:00 +0000
(22:09 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 17 Aug 2007 22:09:00 +0000
(22:09 +0000)
src/process.c
patch
|
blob
|
history
diff --git
a/src/process.c
b/src/process.c
index
30ff82a
..
4e77953
100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-154,6
+154,9
@@
bool remove_service(void) {
DWORD WINAPI controlhandler(DWORD request, DWORD type, LPVOID boe, LPVOID bah) {
switch(request) {
+ case SERVICE_CONTROL_INTERROGATE:
+ SetServiceStatus(statushandle, &status);
+ return NO_ERROR;
case SERVICE_CONTROL_STOP:
logger(LOG_NOTICE, _("Got %s request"), "SERVICE_CONTROL_STOP");
break;