Backport fixes from trunk since revision 1555.

This commit is contained in:
Guus Sliepen 2008-12-11 15:21:40 +00:00
parent 046158a216
commit 76165488f8
6 changed files with 47 additions and 9 deletions

View file

@ -148,6 +148,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;