projects
/
oweals
/
tinc.git
/ 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 30ff82ad5ec700d86de5af753a65cbc388d4f00e..4e779532efdc7c48b53ff55064309c6be978adfc 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;